diff --git a/.eslintrc.js b/.eslintrc.js index 2cafa70a..7ee0f9c4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,6 +6,7 @@ module.exports = { rules: { camelcase: 'off', 'no-nested-ternary': 'off', + 'sort-keys': 'off', 'functional/no-try-statements': 'off', diff --git a/.github/workflows/initiate-package-release.yml b/.github/workflows/initiate-package-release.yml new file mode 100644 index 00000000..c7d6d13d --- /dev/null +++ b/.github/workflows/initiate-package-release.yml @@ -0,0 +1,38 @@ +# https://github.com/changesets/action +name: Initiate-Release + +on: + workflow_dispatch: + +jobs: + initiate-release: + name: Initiate-Release + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + + steps: + - name: Check if main branch is used + run: | + BRANCH_NAME=$(echo $GITHUB_REF | awk -F'/' '{print $3}') + if [[ "$BRANCH_NAME" != "main" ]]; then + echo "Branch $BRANCH_NAME is not allowed to use this action" + exit 1 + fi + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check changeset files + id: check_files + run: | + if ! find ./.changeset -maxdepth 1 -type f -name "*.md" ! -name "README.md" | grep -q .; then + echo "No changeset files found in ./.changeset directory" + exit 1 + fi + + - name: Create release PR + run: gh pr create -B production -H main --title 'Initiate release' --body 'Merges main into production' --reviewer bbenligiray + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate-verify.yml b/.github/workflows/validate-verify.yml index 1effa8e0..765c6ff4 100644 --- a/.github/workflows/validate-verify.yml +++ b/.github/workflows/validate-verify.yml @@ -39,4 +39,4 @@ jobs: - name: Verify deployments run: pnpm verify-deployments - if: steps.build.outcome == 'success' + if: steps.build.outcome == 'success' && !cancelled() diff --git a/CHANGELOG.md b/CHANGELOG.md index eb42e055..07656b60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,95 @@ # @api3/contracts +## 26.2.1 + +### Patch Changes + +- 810f03c: Update dependency zod to ^3.25.76 + +## 26.2.0 + +### Minor Changes + +- 230fed2: Added the `compute-dapp-id` CLI command +- eca462d: Add first wave of Morpho markets to dApp details on Gnosis chain + +## 26.1.0 + +### Minor Changes + +- fd084dc: Add Morpho markets on Katana + +## 26.0.0 + +### Major Changes + +- adf5421: Remove support for following chain: + + - kroma + +## 25.0.0 + +### Major Changes + +- 6171e77: Remove support for following chains: + + - atleta-testnet + - inevm-testnet + - inevm + - kroma-sepolia-testnet + - lightlink-sepolia-testnet + - lightlink + - rari-arbitrum-sepolia-testnet + - rari + - zircuit-sepolia-testnet (48899) + +### Minor Changes + +- f9e3e4b: Add dAPI and Market support to zircuit-sepolia-testnet (48898) + +### Patch Changes + +- cd423b4: Updates RPC provider configurations: + + - Update public provider for manta + - Replace publicnode with tenderly-public for polygon-sepolia-testnet + +## 24.2.1 + +### Patch Changes + +- a4d6344: Fix typo from WTBC to WBTC + +## 24.2.0 + +### Minor Changes + +- 7161784: Add Morpho BTC dApp aliases + +## 24.1.0 + +### Minor Changes + +- e4e71c5: Add dAPI and Market support to katana + +## 24.0.0 + +### Major Changes + +- 1f3906a: Remove unused dApp aliases + +### Minor Changes + +- 184643d: Add dAPI and Market support to metal-sepolia-testnet + +### Patch Changes + +- ce97433: Updates RPC provider configurations: + + - Update default provider for ethereum-holesky-testnet + - Remove publicnode from berachain + - Remove blastapi from moonriver + ## 23.1.0 ### Minor Changes diff --git a/data/chain-support.json b/data/chain-support.json index 311e2ad1..aca17456 100644 --- a/data/chain-support.json +++ b/data/chain-support.json @@ -1,194 +1,9 @@ { - "chainsSupportedByManagerMultisig": [ - "apechain", - "apechain-arbitrum-sepolia-testnet", - "arbitrum", - "arbitrum-sepolia-testnet", - "atleta-testnet", - "avalanche", - "avalanche-testnet", - "base", - "base-sepolia-testnet", - "berachain", - "berachain-testnet", - "bitlayer", - "bitlayer-testnet", - "blast", - "blast-sepolia-testnet", - "bob", - "bob-sepolia-testnet", - "bsc", - "bsc-testnet", - "core", - "core-testnet", - "ethereum", - "ethereum-holesky-testnet", - "ethereum-sepolia-testnet", - "fraxtal", - "fraxtal-holesky-testnet", - "gnosis", - "gnosis-testnet", - "inevm", - "inevm-testnet", - "ink", - "ink-sepolia-testnet", - "kava", - "kava-testnet", - "kroma", - "kroma-sepolia-testnet", - "lightlink", - "lightlink-sepolia-testnet", - "linea", - "linea-sepolia-testnet", - "lumia", - "lumia-sepolia-testnet", - "manta", - "manta-sepolia-testnet", - "mantle", - "mantle-sepolia-testnet", - "megaeth-testnet", - "merlin", - "merlin-testnet", - "metal", - "metis", - "metis-sepolia-testnet", - "mode", - "mode-sepolia-testnet", - "monad-testnet", - "moonbeam", - "moonbeam-testnet", - "moonriver", - "odyssey-sepolia-testnet", - "oev-network", - "opbnb", - "opbnb-testnet", - "optimism", - "optimism-sepolia-testnet", - "polygon", - "polygon-sepolia-testnet", - "polygon-zkevm", - "polygon-zkevm-sepolia-testnet", - "rari", - "rari-arbitrum-sepolia-testnet", - "ronin", - "ronin-testnet", - "scroll", - "scroll-sepolia-testnet", - "sei", - "sei-testnet", - "soneium", - "soneium-sepolia-testnet", - "sonic", - "sonic-testnet", - "taiko", - "taiko-holesky-testnet", - "unichain", - "unichain-sepolia-testnet", - "world", - "world-sepolia-testnet", - "x-layer", - "x-layer-sepolia-testnet", - "zircuit", - "zircuit-sepolia-testnet" - ], - "chainsSupportedByDapis": [ - "apechain", - "apechain-arbitrum-sepolia-testnet", - "arbitrum", - "arbitrum-sepolia-testnet", - "atleta-testnet", - "avalanche", - "avalanche-testnet", - "base", - "base-sepolia-testnet", - "berachain", - "berachain-testnet", - "bitlayer", - "bitlayer-testnet", - "blast", - "blast-sepolia-testnet", - "bob", - "bob-sepolia-testnet", - "bsc", - "bsc-testnet", - "core", - "core-testnet", - "ethereum", - "ethereum-holesky-testnet", - "ethereum-sepolia-testnet", - "fraxtal", - "fraxtal-holesky-testnet", - "gnosis", - "gnosis-testnet", - "inevm", - "inevm-testnet", - "ink", - "ink-sepolia-testnet", - "kava", - "kava-testnet", - "kroma", - "kroma-sepolia-testnet", - "lightlink", - "lightlink-sepolia-testnet", - "linea", - "linea-sepolia-testnet", - "lumia", - "lumia-sepolia-testnet", - "manta", - "manta-sepolia-testnet", - "mantle", - "mantle-sepolia-testnet", - "megaeth-testnet", - "merlin", - "merlin-testnet", - "metal", - "metis", - "metis-sepolia-testnet", - "mode", - "mode-sepolia-testnet", - "monad-testnet", - "moonbeam", - "moonbeam-testnet", - "moonriver", - "odyssey-sepolia-testnet", - "oev-network", - "opbnb", - "opbnb-testnet", - "optimism", - "optimism-sepolia-testnet", - "polygon", - "polygon-sepolia-testnet", - "polygon-zkevm", - "polygon-zkevm-sepolia-testnet", - "rari", - "rari-arbitrum-sepolia-testnet", - "ronin", - "ronin-testnet", - "scroll", - "scroll-sepolia-testnet", - "sei", - "sei-testnet", - "soneium", - "soneium-sepolia-testnet", - "sonic", - "sonic-testnet", - "taiko", - "taiko-holesky-testnet", - "unichain", - "unichain-sepolia-testnet", - "world", - "world-sepolia-testnet", - "x-layer", - "x-layer-sepolia-testnet", - "zircuit", - "zircuit-sepolia-testnet" - ], "chainsSupportedByMarket": [ "apechain", "apechain-arbitrum-sepolia-testnet", "arbitrum", "arbitrum-sepolia-testnet", - "atleta-testnet", "avalanche", "avalanche-testnet", "base", @@ -212,16 +27,11 @@ "fraxtal-holesky-testnet", "gnosis", "gnosis-testnet", - "inevm", - "inevm-testnet", "ink", "ink-sepolia-testnet", + "katana", "kava", "kava-testnet", - "kroma", - "kroma-sepolia-testnet", - "lightlink", - "lightlink-sepolia-testnet", "linea", "linea-sepolia-testnet", "lumia", @@ -234,6 +44,7 @@ "merlin", "merlin-testnet", "metal", + "metal-sepolia-testnet", "metis", "metis-sepolia-testnet", "mode", @@ -252,8 +63,6 @@ "polygon-sepolia-testnet", "polygon-zkevm", "polygon-zkevm-sepolia-testnet", - "rari", - "rari-arbitrum-sepolia-testnet", "ronin", "ronin-testnet", "scroll", diff --git a/data/chains/atleta-testnet.json b/data/chains/atleta-testnet.json deleted file mode 100644 index e78ff2da..00000000 --- a/data/chains/atleta-testnet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "atleta-testnet", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://blockscout.testnet-v2.atleta.network/api" - }, - "browserUrl": "https://blockscout.testnet-v2.atleta.network/" - }, - "id": "2340", - "name": "Atleta testnet", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://testnet-rpc.atleta.network" - } - ], - "symbol": "ATLA", - "testnet": true -} diff --git a/data/chains/berachain.json b/data/chains/berachain.json index c1b72c3e..704679a6 100644 --- a/data/chains/berachain.json +++ b/data/chains/berachain.json @@ -17,10 +17,6 @@ "alias": "default", "rpcUrl": "https://rpc.berachain.com/" }, - { - "alias": "publicnode", - "rpcUrl": "https://berachain-rpc.publicnode.com" - }, { "alias": "alchemy", "homepageUrl": "https://alchemy.com" diff --git a/data/chains/ethereum-holesky-testnet.json b/data/chains/ethereum-holesky-testnet.json index b798ec04..d472a8ec 100644 --- a/data/chains/ethereum-holesky-testnet.json +++ b/data/chains/ethereum-holesky-testnet.json @@ -16,7 +16,7 @@ "providers": [ { "alias": "default", - "rpcUrl": "https://holesky.gateway.tenderly.co" + "rpcUrl": "https://ethereum-holesky-rpc.publicnode.com" } ], "symbol": "ETH", diff --git a/data/chains/inevm-testnet.json b/data/chains/inevm-testnet.json deleted file mode 100644 index 036b5361..00000000 --- a/data/chains/inevm-testnet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "inevm-testnet", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://testnet.explorer.inevm.com/api" - }, - "browserUrl": "https://testnet.explorer.inevm.com/" - }, - "id": "2424", - "name": "inEVM testnet", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://testnet.rpc.inevm.com/http" - } - ], - "symbol": "INJ", - "testnet": true -} diff --git a/data/chains/inevm.json b/data/chains/inevm.json deleted file mode 100644 index ff24666a..00000000 --- a/data/chains/inevm.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "inevm", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://explorer.inevm.com/api" - }, - "browserUrl": "https://explorer.inevm.com/" - }, - "id": "2525", - "name": "inEVM", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://mainnet.rpc.inevm.com/http" - } - ], - "symbol": "INJ", - "testnet": false -} diff --git a/data/chains/katana.json b/data/chains/katana.json new file mode 100644 index 00000000..a77d2d6e --- /dev/null +++ b/data/chains/katana.json @@ -0,0 +1,27 @@ +{ + "alias": "katana", + "decimals": 18, + "explorer": { + "api": { + "key": { + "required": false + }, + "url": "https://explorer.katanarpc.com/api" + }, + "browserUrl": "https://explorer.katanarpc.com/" + }, + "id": "747474", + "name": "Katana", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://rpc.katana.network" + }, + { + "alias": "conduit", + "homepageUrl": "https://conduit.xyz" + } + ], + "symbol": "ETH", + "testnet": false +} diff --git a/data/chains/kroma-sepolia-testnet.json b/data/chains/kroma-sepolia-testnet.json deleted file mode 100644 index fb07154c..00000000 --- a/data/chains/kroma-sepolia-testnet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "kroma-sepolia-testnet", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": true - }, - "url": "https://api.routescan.io/v2/network/testnet/evm/2358/etherscan" - }, - "browserUrl": "https://testnet.kroscan.io/" - }, - "id": "2358", - "name": "Kroma testnet", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://api.sepolia.kroma.network/" - } - ], - "symbol": "ETH", - "testnet": true -} diff --git a/data/chains/kroma.json b/data/chains/kroma.json deleted file mode 100644 index 23f8c9dd..00000000 --- a/data/chains/kroma.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "alias": "kroma", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://api.routescan.io/v2/network/mainnet/evm/255/etherscan" - }, - "browserUrl": "https://kroscan.io/" - }, - "id": "255", - "name": "Kroma", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://api.kroma.network/" - }, - { - "alias": "drpc", - "homepageUrl": "https://drpc.org" - }, - { - "alias": "rockx", - "homepageUrl": "https://rockx.com/" - } - ], - "symbol": "ETH", - "testnet": false -} diff --git a/data/chains/lightlink-sepolia-testnet.json b/data/chains/lightlink-sepolia-testnet.json deleted file mode 100644 index bb11178e..00000000 --- a/data/chains/lightlink-sepolia-testnet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "lightlink-sepolia-testnet", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://pegasus.lightlink.io/api" - }, - "browserUrl": "https://pegasus.lightlink.io/" - }, - "id": "1891", - "name": "LightLink testnet", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://replicator.pegasus.lightlink.io/rpc/v1" - } - ], - "symbol": "ETH", - "testnet": true -} diff --git a/data/chains/lightlink.json b/data/chains/lightlink.json deleted file mode 100644 index 0967ab11..00000000 --- a/data/chains/lightlink.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "alias": "lightlink", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://phoenix.lightlink.io/api" - }, - "browserUrl": "https://phoenix.lightlink.io/" - }, - "id": "1890", - "name": "LightLink", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://replicator.phoenix.lightlink.io/rpc/v1" - }, - { - "alias": "omniatech", - "rpcUrl": "https://endpoints.omniatech.io/v1/lightlink/phoenix/public" - } - ], - "symbol": "ETH", - "testnet": false -} diff --git a/data/chains/manta.json b/data/chains/manta.json index 9dc13e42..a0ce235a 100644 --- a/data/chains/manta.json +++ b/data/chains/manta.json @@ -19,7 +19,7 @@ }, { "alias": "public", - "rpcUrl": "https://r1.pacific.manta.systems/http" + "rpcUrl": "https://manta-pacific-gascap.calderachain.xyz/http" }, { "alias": "nirvanalabs", diff --git a/data/chains/metal-sepolia-testnet.json b/data/chains/metal-sepolia-testnet.json new file mode 100644 index 00000000..769a63b9 --- /dev/null +++ b/data/chains/metal-sepolia-testnet.json @@ -0,0 +1,23 @@ +{ + "alias": "metal-sepolia-testnet", + "decimals": 18, + "explorer": { + "api": { + "key": { + "required": false + }, + "url": "https://testnet.explorer.metall2.com/api" + }, + "browserUrl": "https://testnet.explorer.metall2.com/" + }, + "id": "1740", + "name": "Metal L2 testnet", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://testnet.rpc.metall2.com/" + } + ], + "symbol": "ETH", + "testnet": true +} diff --git a/data/chains/moonriver.json b/data/chains/moonriver.json index d96108d5..c5aa9bcb 100644 --- a/data/chains/moonriver.json +++ b/data/chains/moonriver.json @@ -22,10 +22,6 @@ "alias": "publicnode", "rpcUrl": "https://moonriver-rpc.publicnode.com" }, - { - "alias": "blastapi", - "homepageUrl": "https://blastapi.io" - }, { "alias": "drpc", "homepageUrl": "https://drpc.org/" diff --git a/data/chains/polygon-sepolia-testnet.json b/data/chains/polygon-sepolia-testnet.json index 6848927d..3cc3043a 100644 --- a/data/chains/polygon-sepolia-testnet.json +++ b/data/chains/polygon-sepolia-testnet.json @@ -18,8 +18,8 @@ "rpcUrl": "https://rpc-amoy.polygon.technology" }, { - "alias": "publicnode", - "rpcUrl": "https://polygon-amoy-bor-rpc.publicnode.com" + "alias": "tenderly-public", + "rpcUrl": "https://polygon-amoy.gateway.tenderly.co" } ], "symbol": "POL", diff --git a/data/chains/rari-arbitrum-sepolia-testnet.json b/data/chains/rari-arbitrum-sepolia-testnet.json deleted file mode 100644 index ff4598a7..00000000 --- a/data/chains/rari-arbitrum-sepolia-testnet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "rari-arbitrum-sepolia-testnet", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://testnet.explorer.rarichain.org/api" - }, - "browserUrl": "https://testnet.explorer.rarichain.org/" - }, - "id": "1918988905", - "name": "RARI Chain testnet", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://rari-testnet.calderachain.xyz/http" - } - ], - "symbol": "ETH", - "testnet": true -} diff --git a/data/chains/rari.json b/data/chains/rari.json deleted file mode 100644 index 2c2fad5f..00000000 --- a/data/chains/rari.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "alias": "rari", - "decimals": 18, - "explorer": { - "api": { - "key": { - "required": false - }, - "url": "https://mainnet.explorer.rarichain.org/api" - }, - "browserUrl": "https://mainnet.explorer.rarichain.org/" - }, - "id": "1380012617", - "name": "RARI Chain", - "providers": [ - { - "alias": "default", - "rpcUrl": "https://mainnet.rpc.rarichain.org/http/" - } - ], - "symbol": "ETH", - "testnet": false -} diff --git a/data/chains/zircuit-sepolia-testnet.json b/data/chains/zircuit-sepolia-testnet.json index 577a1356..90fea547 100644 --- a/data/chains/zircuit-sepolia-testnet.json +++ b/data/chains/zircuit-sepolia-testnet.json @@ -2,24 +2,14 @@ "alias": "zircuit-sepolia-testnet", "decimals": 18, "explorer": { - "api": { - "key": { - "required": true - }, - "url": "https://explorer.testnet.zircuit.com/api/contractVerifyHardhat" - }, - "browserUrl": "https://explorer.testnet.zircuit.com/" + "browserUrl": "https://explorer.garfield-testnet.zircuit.com/" }, - "id": "48899", + "id": "48898", "name": "Zircuit testnet", "providers": [ { "alias": "default", - "rpcUrl": "https://testnet.zircuit.com" - }, - { - "alias": "liquify", - "rpcUrl": "https://zircuit1-testnet.liquify.com" + "rpcUrl": "https://garfield-testnet.zircuit.com" } ], "symbol": "ETH", diff --git a/data/dapps/aurum.json b/data/dapps/aurum.json deleted file mode 100644 index 3f9bdb81..00000000 --- a/data/dapps/aurum.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "aliases": { - "aurum-finance": { "chains": ["sonic"], "title": "Aurum" } - }, - "homepageUrl": "https://aurumfi.io/" -} diff --git a/data/dapps/elara.json b/data/dapps/elara.json deleted file mode 100644 index ae2d21f6..00000000 --- a/data/dapps/elara.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "aliases": { - "elara": { "chains": ["zircuit"], "title": "Elara" } - }, - "homepageUrl": "https://app.elara.finance/" -} diff --git a/data/dapps/ionic-protocol.json b/data/dapps/ionic-protocol.json deleted file mode 100644 index 90262408..00000000 --- a/data/dapps/ionic-protocol.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "aliases": { - "ionic": { "chains": ["mode", "metal"], "title": "Ionic Protocol" } - }, - "homepageUrl": "https://www.ionic.money/" -} diff --git a/data/dapps/morpho.json b/data/dapps/morpho.json index ee0a9d2b..3d312644 100644 --- a/data/dapps/morpho.json +++ b/data/dapps/morpho.json @@ -6,9 +6,49 @@ "description": "Only to be used for the MVL/USDC 77% LLTV market." }, "morpho-wsteth-usdc-860-lltv": { - "chains": ["ethereum"], + "chains": ["ethereum", "gnosis"], "title": "Morpho wstETH/USDC 86% LLTV", "description": "Only to be used for the wstETH/USDC 86% LLTV market." + }, + "morpho-wbtc-usdc-860-lltv": { + "chains": ["ethereum"], + "title": "Morpho WBTC/USDC 86% LLTV", + "description": "Only to be used for the WBTC/USDC 86% LLTV market." + }, + "morpho-cbbtc-usdc-860-lltv": { + "chains": ["ethereum"], + "title": "Morpho cbBTC/USDC 86% LLTV", + "description": "Only to be used for the cbBTC/USDC 86% LLTV market." + }, + "morpho-vbeth-vbusdc-860-lltv": { + "chains": ["katana"], + "title": "Morpho vbETH/vbUSDC 86% LLTV", + "description": "Only to be used for the vbETH/vbUSDC 86% LLTV market." + }, + "morpho-vbeth-vbusdt-860-lltv": { + "chains": ["katana"], + "title": "Morpho vbETH/vbUSDT 86% LLTV", + "description": "Only to be used for the vbETH/vbUSDT 86% LLTV market." + }, + "morpho-vbwbtc-vbusdc-860-lltv": { + "chains": ["katana"], + "title": "Morpho vbWBTC/vbUSDC 86% LLTV", + "description": "Only to be used for the vbWBTC/vbUSDC 86% LLTV market." + }, + "morpho-vbwbtc-vbusdt-860-lltv": { + "chains": ["katana"], + "title": "Morpho vbWBTC/vbUSDT 86% LLTV", + "description": "Only to be used for the vbWBTC/vbUSDT 86% LLTV market." + }, + "morpho-gno-usdc-860-lltv": { + "chains": ["gnosis"], + "title": "Morpho GNO/USDC 86% LLTV", + "description": "Only to be used for the GNO/USDC 86% LLTV market." + }, + "morpho-sdai-usdc-860-lltv": { + "chains": ["gnosis"], + "title": "Morpho sDAI/USDC 86% LLTV", + "description": "Only to be used for the sDAI/USDC 86% LLTV market." } }, "homepageUrl": "https://morpho.org/vaults/" diff --git a/data/dapps/omega.json b/data/dapps/omega.json deleted file mode 100644 index baab488c..00000000 --- a/data/dapps/omega.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "aliases": { - "omega": { "chains": ["mantle"], "title": "Omega" } - }, - "homepageUrl": "https://www.omega.xyz/" -} diff --git a/data/dapps/vicuna-finance.json b/data/dapps/vicuna-finance.json deleted file mode 100644 index 5e526adc..00000000 --- a/data/dapps/vicuna-finance.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "aliases": { - "vicuna-finance": { "chains": ["sonic"], "title": "Vicuna Finance" } - }, - "homepageUrl": "https://vicunafinance.com/" -} diff --git a/deploy/1_deploy.ts b/deploy/1_deploy.ts index c0f577f8..a952c2a7 100644 --- a/deploy/1_deploy.ts +++ b/deploy/1_deploy.ts @@ -1,11 +1,6 @@ import { deployments, ethers, network } from 'hardhat'; -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../data/chain-support.json'; import * as managerMultisigMetadata from '../data/manager-multisig-metadata.json'; import { CHAINS } from '../src/index'; import type { Api3ReaderProxyV1Factory, OwnableCallForwarder } from '../src/index'; @@ -16,141 +11,136 @@ module.exports = async () => { const { deploy, log } = deployments; const [deployer] = await ethers.getSigners(); - if (chainsSupportedByManagerMultisig.includes(network.name)) { - const gnosisSafeWithoutProxy = await deployments.get('GnosisSafeWithoutProxy').catch(async () => { - log(`Deploying GnosisSafeWithoutProxy`); - return deploy('GnosisSafeWithoutProxy', { - args: CHAINS.find((chain) => chain.alias === process.env.NETWORK)?.testnet - ? [managerMultisigMetadata.testnet.owners, managerMultisigMetadata.testnet.threshold] - : [managerMultisigMetadata.mainnet.owners, managerMultisigMetadata.mainnet.threshold], + if (!chainsSupportedByMarket.includes(network.name)) { + throw new Error(`${network.name} is not supported`); + } + const gnosisSafeWithoutProxy = await deployments.get('GnosisSafeWithoutProxy').catch(async () => { + log(`Deploying GnosisSafeWithoutProxy`); + return deploy('GnosisSafeWithoutProxy', { + args: CHAINS.find((chain) => chain.alias === process.env.NETWORK)?.testnet + ? [managerMultisigMetadata.testnet.owners, managerMultisigMetadata.testnet.threshold] + : [managerMultisigMetadata.mainnet.owners, managerMultisigMetadata.mainnet.threshold], + from: deployer!.address, + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); + + const { address: ownableCallForwarderAddress, abi: ownableCallForwarderAbi } = await deployments + .get('OwnableCallForwarder') + .catch(async () => { + log(`Deploying OwnableCallForwarder`); + return deploy('OwnableCallForwarder', { from: deployer!.address, + args: [gnosisSafeWithoutProxy.address], log: true, deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', }); }); + const ownableCallForwarder = new ethers.Contract( + ownableCallForwarderAddress, + ownableCallForwarderAbi, + deployer + ) as unknown as OwnableCallForwarder; - const { address: ownableCallForwarderAddress, abi: ownableCallForwarderAbi } = await deployments - .get('OwnableCallForwarder') - .catch(async () => { - log(`Deploying OwnableCallForwarder`); - return deploy('OwnableCallForwarder', { - from: deployer!.address, - args: [gnosisSafeWithoutProxy.address], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); - const ownableCallForwarder = new ethers.Contract( - ownableCallForwarderAddress, - ownableCallForwarderAbi, - deployer - ) as unknown as OwnableCallForwarder; + const accessControlRegistry = await deployments.get('AccessControlRegistry').catch(async () => { + log(`Deploying AccessControlRegistry`); + return deploy('AccessControlRegistry', { + from: deployer!.address, + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); - if (chainsSupportedByDapis.includes(network.name)) { - const accessControlRegistry = await deployments.get('AccessControlRegistry').catch(async () => { - log(`Deploying AccessControlRegistry`); - return deploy('AccessControlRegistry', { - from: deployer!.address, - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); + const api3ServerV1 = await deployments.get('Api3ServerV1').catch(async () => { + log(`Deploying Api3ServerV1`); + return deploy('Api3ServerV1', { + from: deployer!.address, + args: [accessControlRegistry.address, 'Api3ServerV1 admin', await ownableCallForwarder.getAddress()], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); - const api3ServerV1 = await deployments.get('Api3ServerV1').catch(async () => { - log(`Deploying Api3ServerV1`); - return deploy('Api3ServerV1', { - from: deployer!.address, - args: [accessControlRegistry.address, 'Api3ServerV1 admin', await ownableCallForwarder.getAddress()], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); + const api3ServerV1OevExtension = await deployments.get('Api3ServerV1OevExtension').catch(async () => { + log(`Deploying Api3ServerV1OevExtension`); + return deploy('Api3ServerV1OevExtension', { + from: deployer!.address, + args: [ + accessControlRegistry.address, + 'Api3ServerV1OevExtension admin', + await ownableCallForwarder.getAddress(), + api3ServerV1.address, + ], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); - const api3ServerV1OevExtension = await deployments.get('Api3ServerV1OevExtension').catch(async () => { - log(`Deploying Api3ServerV1OevExtension`); - return deploy('Api3ServerV1OevExtension', { - from: deployer!.address, - args: [ - accessControlRegistry.address, - 'Api3ServerV1OevExtension admin', - await ownableCallForwarder.getAddress(), - api3ServerV1.address, - ], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); + const { address: api3ReaderProxyV1FactoryAddress, abi: api3ReaderProxyV1FactoryAbi } = await deployments + .get('Api3ReaderProxyV1Factory') + .catch(async () => { + log(`Deploying Api3ReaderProxyV1Factory`); + return deploy('Api3ReaderProxyV1Factory', { + from: deployer!.address, + args: [await ownableCallForwarder.getAddress(), api3ServerV1OevExtension.address], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', }); + }); + const api3ReaderProxyV1Factory = new ethers.Contract( + api3ReaderProxyV1FactoryAddress, + api3ReaderProxyV1FactoryAbi, + deployer + ) as unknown as Api3ReaderProxyV1Factory; - const { address: api3ReaderProxyV1FactoryAddress, abi: api3ReaderProxyV1FactoryAbi } = await deployments - .get('Api3ReaderProxyV1Factory') - .catch(async () => { - log(`Deploying Api3ReaderProxyV1Factory`); - return deploy('Api3ReaderProxyV1Factory', { - from: deployer!.address, - args: [await ownableCallForwarder.getAddress(), api3ServerV1OevExtension.address], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); - const api3ReaderProxyV1Factory = new ethers.Contract( - api3ReaderProxyV1FactoryAddress, - api3ReaderProxyV1FactoryAbi, - deployer - ) as unknown as Api3ReaderProxyV1Factory; - - const dapiName = ethers.encodeBytes32String('ETH/USD'); - const dappId = 1; - const api3ReaderProxyV1Metadata = '0x'; - const expectedApi3ReaderProxyV1Address = await api3ReaderProxyV1Factory.computeApi3ReaderProxyV1Address( - dapiName, - dappId, - api3ReaderProxyV1Metadata - ); - if ((await ethers.provider.getCode(expectedApi3ReaderProxyV1Address)) === '0x') { - await api3ReaderProxyV1Factory.deployApi3ReaderProxyV1(dapiName, dappId, api3ReaderProxyV1Metadata); - log(`Deployed example Api3ReaderProxyV1 at ${expectedApi3ReaderProxyV1Address}`); - } + const dapiName = ethers.encodeBytes32String('ETH/USD'); + const dappId = 1; + const api3ReaderProxyV1Metadata = '0x'; + const expectedApi3ReaderProxyV1Address = await api3ReaderProxyV1Factory.computeApi3ReaderProxyV1Address( + dapiName, + dappId, + api3ReaderProxyV1Metadata + ); + if ((await ethers.provider.getCode(expectedApi3ReaderProxyV1Address)) === '0x') { + await api3ReaderProxyV1Factory.deployApi3ReaderProxyV1(dapiName, dappId, api3ReaderProxyV1Metadata); + log(`Deployed example Api3ReaderProxyV1 at ${expectedApi3ReaderProxyV1Address}`); + } - if (chainsSupportedByMarket.includes(network.name)) { - const api3MarketV2 = await deployments.get('Api3MarketV2').catch(async () => { - log(`Deploying Api3MarketV2`); - return deploy('Api3MarketV2', { - from: deployer!.address, - args: [ - await ownableCallForwarder.getAddress(), - api3ReaderProxyV1FactoryAddress, - MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH, - ], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); + const api3MarketV2 = await deployments.get('Api3MarketV2').catch(async () => { + log(`Deploying Api3MarketV2`); + return deploy('Api3MarketV2', { + from: deployer!.address, + args: [ + await ownableCallForwarder.getAddress(), + api3ReaderProxyV1FactoryAddress, + MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH, + ], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); - await deployments.get('AirseekerRegistry').catch(async () => { - log(`Deploying AirseekerRegistry`); - return deploy('AirseekerRegistry', { - from: deployer!.address, - args: [api3MarketV2.address, api3ServerV1.address], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); - } + await deployments.get('AirseekerRegistry').catch(async () => { + log(`Deploying AirseekerRegistry`); + return deploy('AirseekerRegistry', { + from: deployer!.address, + args: [api3MarketV2.address, api3ServerV1.address], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); - if (chainsSupportedByOevAuctions.includes(network.name)) { - await deployments.get('OevAuctionHouse').catch(async () => { - log(`Deploying OevAuctionHouse`); - return deploy('OevAuctionHouse', { - from: deployer!.address, - args: [accessControlRegistry.address, 'OevAuctionHouse admin', await ownableCallForwarder.getAddress()], - log: true, - deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', - }); - }); - } - } - } else { - throw new Error(`${network.name} is not supported`); + if (chainsSupportedByOevAuctions.includes(network.name)) { + await deployments.get('OevAuctionHouse').catch(async () => { + log(`Deploying OevAuctionHouse`); + return deploy('OevAuctionHouse', { + from: deployer!.address, + args: [accessControlRegistry.address, 'OevAuctionHouse admin', await ownableCallForwarder.getAddress()], + log: true, + deterministicDeployment: process.env.DETERMINISTIC ? ethers.ZeroHash : '', + }); + }); } }; module.exports.tags = ['deploy']; diff --git a/deploy/2_update_beacon_set.ts b/deploy/2_update_beacon_set.ts index 79fc4bad..ca79be97 100644 --- a/deploy/2_update_beacon_set.ts +++ b/deploy/2_update_beacon_set.ts @@ -2,10 +2,10 @@ import { type HardhatEthersSigner } from '@nomicfoundation/hardhat-ethers/signer import type { BytesLike } from 'ethers'; import { deployments, ethers, network } from 'hardhat'; -import { chainsSupportedByDapis } from '../data/chain-support.json'; +import { chainsSupportedByMarket } from '../data/chain-support.json'; import { Api3ServerV1__factory } from '../src/index'; -const EXPECTED_DEPLOYER_ADDRESS = ethers.getAddress('0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1'); +const EXAMPLE_AIRNODE_ADDRESS = ethers.getAddress('0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1'); const BEACON_SET_BEACON_COUNT = 7; async function signData( @@ -45,9 +45,8 @@ module.exports = async () => { // If the first signer returned by ethers is the expected deployer address, it will do both (1) and (2). // Otherwise, it will only do (1). In both cases, (1) is done using hardcoded signatures by the expected // deployer address. - if (!chainsSupportedByDapis.includes(network.name)) { - log(`Skipping Beacon set update for ${network.name}`); - return; + if (!chainsSupportedByMarket.includes(network.name)) { + throw new Error(`${network.name} is not supported`); } const Api3ServerV1 = await deployments.get('Api3ServerV1'); @@ -57,7 +56,7 @@ module.exports = async () => { (index) => `0x${(index + 1).toString(16).padStart(64, '0')}` ) as BytesLike[]; const beaconIds = templateIds.map((templateId) => - ethers.solidityPackedKeccak256(['address', 'bytes32'], [EXPECTED_DEPLOYER_ADDRESS, templateId]) + ethers.solidityPackedKeccak256(['address', 'bytes32'], [EXAMPLE_AIRNODE_ADDRESS, templateId]) ); const beaconSetId = ethers.keccak256(ethers.AbiCoder.defaultAbiCoder().encode(['bytes32[]'], [beaconIds])); const dataFeedReadings = await api3ServerV1.multicall.staticCall([ @@ -94,7 +93,7 @@ module.exports = async () => { if (dataFeedReadings[ind] === initialValue) { updateMulticallData.push( api3ServerV1.interface.encodeFunctionData('updateBeaconWithSignedData', [ - EXPECTED_DEPLOYER_ADDRESS, + EXAMPLE_AIRNODE_ADDRESS, templateId, ind + 1, `0x${(ind + 1).toString().padStart(64, '0')}`, @@ -116,7 +115,7 @@ module.exports = async () => { log('Beacon set update already executed'); } - if (EXPECTED_DEPLOYER_ADDRESS !== deployer!.address) { + if (EXAMPLE_AIRNODE_ADDRESS !== deployer!.address) { log('Skipping gas estimation for non-expected deployer'); return; } @@ -127,7 +126,7 @@ module.exports = async () => { const signature = await signData(deployer!, templateId, ind + 102, ind + 102); estimateGasMulticallData.push( api3ServerV1.interface.encodeFunctionData('updateBeaconWithSignedData', [ - EXPECTED_DEPLOYER_ADDRESS, + EXAMPLE_AIRNODE_ADDRESS, templateId, ind + 102, `0x${(ind + 102).toString().padStart(64, '0')}`, @@ -139,7 +138,7 @@ module.exports = async () => { estimateGasMulticallData.push(api3ServerV1.interface.encodeFunctionData('updateBeaconSetWithBeacons', [beaconIds])); const estimateGasCalldata = api3ServerV1.interface.encodeFunctionData('multicall', [estimateGasMulticallData]); // log(`Beacon set update estimate gas calldata:\n${estimateGasCalldata}`); - const voidSigner = new ethers.VoidSigner(EXPECTED_DEPLOYER_ADDRESS, ethers.provider); + const voidSigner = new ethers.VoidSigner(EXAMPLE_AIRNODE_ADDRESS, ethers.provider); const gasCost = await voidSigner?.estimateGas({ to: api3ServerV1.getAddress(), data: estimateGasCalldata }); log(`Estimated Beacon set update gas cost: ${gasCost}`); }; diff --git a/deploy/3_verify.ts b/deploy/3_verify.ts index b5b4bd32..3cb580f9 100644 --- a/deploy/3_verify.ts +++ b/deploy/3_verify.ts @@ -1,130 +1,120 @@ import { deployments, ethers, network, run } from 'hardhat'; -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../data/chain-support.json'; import { Api3ReaderProxyV1__factory, ERC1967Proxy__factory } from '../src/index'; -const EXPECTED_DEPLOYER_ADDRESS = ethers.getAddress('0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1'); const MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH = 10; module.exports = async () => { - if (chainsSupportedByManagerMultisig.includes(network.name)) { - const GnosisSafeWithoutProxy = await deployments.get('GnosisSafeWithoutProxy'); - await run('verify:verify', { - address: GnosisSafeWithoutProxy.address, - constructorArguments: GnosisSafeWithoutProxy.args, - }); + if (!chainsSupportedByMarket.includes(network.name)) { + throw new Error(`${network.name} is not supported`); + } - const OwnableCallForwarder = await deployments.get('OwnableCallForwarder'); - await run('verify:verify', { - address: OwnableCallForwarder.address, - constructorArguments: [EXPECTED_DEPLOYER_ADDRESS], - }); + const GnosisSafeWithoutProxy = await deployments.get('GnosisSafeWithoutProxy'); + await run('verify:verify', { + address: GnosisSafeWithoutProxy.address, + constructorArguments: GnosisSafeWithoutProxy.args, + }); - if (chainsSupportedByDapis.includes(network.name)) { - const AccessControlRegistry = await deployments.get('AccessControlRegistry'); - await run('verify:verify', { - address: AccessControlRegistry.address, - }); + const OwnableCallForwarder = await deployments.get('OwnableCallForwarder'); + await run('verify:verify', { + address: OwnableCallForwarder.address, + constructorArguments: [GnosisSafeWithoutProxy.address], + }); - const Api3ServerV1 = await deployments.get('Api3ServerV1'); - await run('verify:verify', { - address: Api3ServerV1.address, - constructorArguments: [AccessControlRegistry.address, 'Api3ServerV1 admin', OwnableCallForwarder.address], - }); + const AccessControlRegistry = await deployments.get('AccessControlRegistry'); + await run('verify:verify', { + address: AccessControlRegistry.address, + }); - const Api3ServerV1OevExtension = await deployments.get('Api3ServerV1OevExtension'); - await run('verify:verify', { - address: Api3ServerV1OevExtension.address, - constructorArguments: [ - AccessControlRegistry.address, - 'Api3ServerV1OevExtension admin', - OwnableCallForwarder.address, - Api3ServerV1.address, - ], - }); + const Api3ServerV1 = await deployments.get('Api3ServerV1'); + await run('verify:verify', { + address: Api3ServerV1.address, + constructorArguments: [AccessControlRegistry.address, 'Api3ServerV1 admin', OwnableCallForwarder.address], + }); - const Api3ReaderProxyV1Factory = await deployments.get('Api3ReaderProxyV1Factory'); - await run('verify:verify', { - address: Api3ReaderProxyV1Factory.address, - constructorArguments: [OwnableCallForwarder.address, Api3ServerV1OevExtension.address], - }); + const Api3ServerV1OevExtension = await deployments.get('Api3ServerV1OevExtension'); + await run('verify:verify', { + address: Api3ServerV1OevExtension.address, + constructorArguments: [ + AccessControlRegistry.address, + 'Api3ServerV1OevExtension admin', + OwnableCallForwarder.address, + Api3ServerV1.address, + ], + }); - const dapiName = ethers.encodeBytes32String('ETH/USD'); - const dappId = 1; - const api3ReaderProxyV1Metadata = '0x'; - const api3ReaderProxyV1ImplementationInitcode = ethers.solidityPacked( - ['bytes', 'bytes'], - [ - Api3ReaderProxyV1__factory.bytecode, - ethers.AbiCoder.defaultAbiCoder().encode( - ['address', 'bytes32', 'uint256'], - [Api3ServerV1OevExtension.address, dapiName, dappId] - ), - ] - ); - const api3ReaderProxyV1ImplementationAddress = ethers.getCreate2Address( - Api3ReaderProxyV1Factory.address, - ethers.keccak256(api3ReaderProxyV1Metadata), - ethers.keccak256(api3ReaderProxyV1ImplementationInitcode) - ); - await run('verify:verify', { - address: api3ReaderProxyV1ImplementationAddress, - constructorArguments: [Api3ServerV1OevExtension.address, dapiName, dappId], - }); + const Api3ReaderProxyV1Factory = await deployments.get('Api3ReaderProxyV1Factory'); + await run('verify:verify', { + address: Api3ReaderProxyV1Factory.address, + constructorArguments: [OwnableCallForwarder.address, Api3ServerV1OevExtension.address], + }); - const api3ReaderProxyV1Initcode = ethers.solidityPacked( - ['bytes', 'bytes'], - [ - ERC1967Proxy__factory.bytecode, - ethers.AbiCoder.defaultAbiCoder().encode( - ['address', 'bytes'], - [api3ReaderProxyV1ImplementationAddress, api3ReaderProxyV1Metadata] - ), - ] - ); - const api3ReaderProxyV1Address = ethers.getCreate2Address( - Api3ReaderProxyV1Factory.address, - ethers.keccak256(api3ReaderProxyV1Metadata), - ethers.keccak256(api3ReaderProxyV1Initcode) - ); - await run('verify:verify', { - address: api3ReaderProxyV1Address, - constructorArguments: [api3ReaderProxyV1ImplementationAddress, api3ReaderProxyV1Metadata], - }); + const dapiName = ethers.encodeBytes32String('ETH/USD'); + const dappId = 1; + const api3ReaderProxyV1Metadata = '0x'; + const api3ReaderProxyV1ImplementationInitcode = ethers.solidityPacked( + ['bytes', 'bytes'], + [ + Api3ReaderProxyV1__factory.bytecode, + ethers.AbiCoder.defaultAbiCoder().encode( + ['address', 'bytes32', 'uint256'], + [Api3ServerV1OevExtension.address, dapiName, dappId] + ), + ] + ); + const api3ReaderProxyV1ImplementationAddress = ethers.getCreate2Address( + Api3ReaderProxyV1Factory.address, + ethers.keccak256(api3ReaderProxyV1Metadata), + ethers.keccak256(api3ReaderProxyV1ImplementationInitcode) + ); + await run('verify:verify', { + address: api3ReaderProxyV1ImplementationAddress, + constructorArguments: [Api3ServerV1OevExtension.address, dapiName, dappId], + }); - if (chainsSupportedByMarket.includes(network.name)) { - const Api3MarketV2 = await deployments.get('Api3MarketV2'); - await run('verify:verify', { - address: Api3MarketV2.address, - constructorArguments: [ - OwnableCallForwarder.address, - Api3ReaderProxyV1Factory.address, - MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH, - ], - }); + const api3ReaderProxyV1Initcode = ethers.solidityPacked( + ['bytes', 'bytes'], + [ + ERC1967Proxy__factory.bytecode, + ethers.AbiCoder.defaultAbiCoder().encode( + ['address', 'bytes'], + [api3ReaderProxyV1ImplementationAddress, api3ReaderProxyV1Metadata] + ), + ] + ); + const api3ReaderProxyV1Address = ethers.getCreate2Address( + Api3ReaderProxyV1Factory.address, + ethers.keccak256(api3ReaderProxyV1Metadata), + ethers.keccak256(api3ReaderProxyV1Initcode) + ); + await run('verify:verify', { + address: api3ReaderProxyV1Address, + constructorArguments: [api3ReaderProxyV1ImplementationAddress, api3ReaderProxyV1Metadata], + }); - const AirseekerRegistry = await deployments.get('AirseekerRegistry'); - await run('verify:verify', { - address: AirseekerRegistry.address, - constructorArguments: [Api3MarketV2.address, Api3ServerV1.address], - }); - } + const Api3MarketV2 = await deployments.get('Api3MarketV2'); + await run('verify:verify', { + address: Api3MarketV2.address, + constructorArguments: [ + OwnableCallForwarder.address, + Api3ReaderProxyV1Factory.address, + MAXIMUM_SUBSCRIPTION_QUEUE_LENGTH, + ], + }); - if (chainsSupportedByOevAuctions.includes(network.name)) { - const OevAuctionHouse = await deployments.get('OevAuctionHouse'); - await run('verify:verify', { - address: OevAuctionHouse.address, - constructorArguments: [AccessControlRegistry.address, 'OevAuctionHouse admin', OwnableCallForwarder.address], - }); - } - } - } else { - throw new Error(`${network.name} is not supported`); + const AirseekerRegistry = await deployments.get('AirseekerRegistry'); + await run('verify:verify', { + address: AirseekerRegistry.address, + constructorArguments: [Api3MarketV2.address, Api3ServerV1.address], + }); + + if (chainsSupportedByOevAuctions.includes(network.name)) { + const OevAuctionHouse = await deployments.get('OevAuctionHouse'); + await run('verify:verify', { + address: OevAuctionHouse.address, + constructorArguments: [AccessControlRegistry.address, 'OevAuctionHouse admin', OwnableCallForwarder.address], + }); } }; module.exports.tags = ['verify']; diff --git a/deployments/addresses.json b/deployments/addresses.json index c1673d5e..ea463adf 100644 --- a/deployments/addresses.json +++ b/deployments/addresses.json @@ -13,7 +13,6 @@ "196": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "204": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "252": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "255": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "480": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "919": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1088": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", @@ -26,21 +25,16 @@ "1301": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1328": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1329": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", + "1740": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1750": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "1868": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "1890": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "1891": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1946": "0x795E7417b5e9c70037654480F0371e202b48bC77", "2020": "0x14A9E40FcAdA95A273ce3c8d4ccF7EA3280BDd26", "2021": "0x795E7417b5e9c70037654480F0371e202b48bC77", "2221": "0x795E7417b5e9c70037654480F0371e202b48bC77", "2222": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "2340": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "2358": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "2424": "0x795E7417b5e9c70037654480F0371e202b48bC77", "2442": "0x795E7417b5e9c70037654480F0371e202b48bC77", "2522": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "2525": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "4200": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "4801": "0x795E7417b5e9c70037654480F0371e202b48bC77", "4913": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", @@ -58,7 +52,7 @@ "42161": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "43113": "0x795E7417b5e9c70037654480F0371e202b48bC77", "43114": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "48899": "0x795E7417b5e9c70037654480F0371e202b48bC77", + "48898": "0x795E7417b5e9c70037654480F0371e202b48bC77", "48900": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "57054": "0x795E7417b5e9c70037654480F0371e202b48bC77", "57073": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", @@ -79,6 +73,7 @@ "534351": "0x795E7417b5e9c70037654480F0371e202b48bC77", "534352": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "686868": "0x795E7417b5e9c70037654480F0371e202b48bC77", + "747474": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "763373": "0x795E7417b5e9c70037654480F0371e202b48bC77", "808813": "0x795E7417b5e9c70037654480F0371e202b48bC77", "911867": "0x795E7417b5e9c70037654480F0371e202b48bC77", @@ -87,8 +82,6 @@ "11155420": "0x795E7417b5e9c70037654480F0371e202b48bC77", "168587773": "0x795E7417b5e9c70037654480F0371e202b48bC77", "994873017": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "1380012617": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "1918988905": "0x795E7417b5e9c70037654480F0371e202b48bC77", "1952959480": "0x795E7417b5e9c70037654480F0371e202b48bC77" }, "OwnableCallForwarder": { @@ -105,7 +98,6 @@ "196": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "204": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "252": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "255": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "480": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "919": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "1088": "0x2D6D050Fc44d4db1c8577f4cF87905811fA126b2", @@ -118,21 +110,16 @@ "1301": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "1328": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "1329": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "1740": "0x73E5e41f981365cD92180B040e8532693D84B32D", "1750": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "1868": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "1890": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "1891": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", "1946": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "2020": "0x25C6f371Cf8d4200B89dF84f9dE69d011013B086", "2021": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "2221": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "2222": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "2340": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "2358": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "2424": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "2442": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "2522": "0xF6d2675468989387e96127546e0CBC9A384fa418", - "2525": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "4200": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "4801": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "4913": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", @@ -150,7 +137,7 @@ "42161": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "43113": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "43114": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "48899": "0xF6d2675468989387e96127546e0CBC9A384fa418", + "48898": "0x73E5e41f981365cD92180B040e8532693D84B32D", "48900": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "57054": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "57073": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", @@ -171,6 +158,7 @@ "534351": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "534352": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "686868": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "747474": "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "763373": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "808813": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "911867": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", @@ -179,8 +167,6 @@ "11155420": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "168587773": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "994873017": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "1380012617": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "1918988905": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", "1952959480": "0x81bc85f329cDB28936FbB239f734AE495121F9A6" }, "AccessControlRegistry": { @@ -197,7 +183,6 @@ "196": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "204": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "252": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "255": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "480": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "919": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1088": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", @@ -210,21 +195,16 @@ "1301": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1328": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1329": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", + "1740": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1750": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1868": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "1890": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "1891": "0xDDe9CE3736939d59A70c446c8A4AB6714CB4a41a", "1946": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "2020": "0x55D72F0eb10e85D390B20DA57aa3122312647c0d", "2021": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "2221": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "2222": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "2340": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "2358": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "2424": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "2442": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "2522": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", - "2525": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "4200": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "4801": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "4913": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", @@ -242,7 +222,7 @@ "42161": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "43113": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "43114": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "48899": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", + "48898": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "48900": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "57054": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "57073": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", @@ -263,6 +243,7 @@ "534351": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "534352": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "686868": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", + "747474": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "763373": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "808813": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "911867": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", @@ -271,8 +252,6 @@ "11155420": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "168587773": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "994873017": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "1380012617": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "1918988905": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "1952959480": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730" }, "Api3ServerV1": { @@ -289,7 +268,6 @@ "196": "0x709944a48cAf83535e43471680fDA4905FB3920a", "204": "0x709944a48cAf83535e43471680fDA4905FB3920a", "252": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "255": "0x709944a48cAf83535e43471680fDA4905FB3920a", "480": "0x709944a48cAf83535e43471680fDA4905FB3920a", "919": "0x709944a48cAf83535e43471680fDA4905FB3920a", "1088": "0x0ADa28a62F6F304aEF27e73E4a65cBD34C6026c3", @@ -302,21 +280,16 @@ "1301": "0x709944a48cAf83535e43471680fDA4905FB3920a", "1328": "0x709944a48cAf83535e43471680fDA4905FB3920a", "1329": "0x709944a48cAf83535e43471680fDA4905FB3920a", + "1740": "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d", "1750": "0x709944a48cAf83535e43471680fDA4905FB3920a", "1868": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "1890": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "1891": "0x3d0Ca9e5490E36627beA9a8cb3cefa12D7cDc0af", "1946": "0x709944a48cAf83535e43471680fDA4905FB3920a", "2020": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", "2021": "0x709944a48cAf83535e43471680fDA4905FB3920a", "2221": "0x709944a48cAf83535e43471680fDA4905FB3920a", "2222": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "2340": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "2358": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "2424": "0x709944a48cAf83535e43471680fDA4905FB3920a", "2442": "0x709944a48cAf83535e43471680fDA4905FB3920a", "2522": "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D", - "2525": "0x709944a48cAf83535e43471680fDA4905FB3920a", "4200": "0x709944a48cAf83535e43471680fDA4905FB3920a", "4801": "0x709944a48cAf83535e43471680fDA4905FB3920a", "4913": "0x709944a48cAf83535e43471680fDA4905FB3920a", @@ -334,7 +307,7 @@ "42161": "0x709944a48cAf83535e43471680fDA4905FB3920a", "43113": "0x709944a48cAf83535e43471680fDA4905FB3920a", "43114": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "48899": "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D", + "48898": "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d", "48900": "0x709944a48cAf83535e43471680fDA4905FB3920a", "57054": "0x709944a48cAf83535e43471680fDA4905FB3920a", "57073": "0x709944a48cAf83535e43471680fDA4905FB3920a", @@ -355,6 +328,7 @@ "534351": "0x709944a48cAf83535e43471680fDA4905FB3920a", "534352": "0x709944a48cAf83535e43471680fDA4905FB3920a", "686868": "0x709944a48cAf83535e43471680fDA4905FB3920a", + "747474": "0xCEd8153AdF62F31d940f230397b30622298a445d", "763373": "0x709944a48cAf83535e43471680fDA4905FB3920a", "808813": "0x709944a48cAf83535e43471680fDA4905FB3920a", "911867": "0x709944a48cAf83535e43471680fDA4905FB3920a", @@ -363,8 +337,6 @@ "11155420": "0x709944a48cAf83535e43471680fDA4905FB3920a", "168587773": "0x709944a48cAf83535e43471680fDA4905FB3920a", "994873017": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "1380012617": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "1918988905": "0x709944a48cAf83535e43471680fDA4905FB3920a", "1952959480": "0x709944a48cAf83535e43471680fDA4905FB3920a" }, "Api3ServerV1OevExtension": { @@ -381,7 +353,6 @@ "196": "0x2E787629c3B7545271240A87197108823ce8303b", "204": "0x2E787629c3B7545271240A87197108823ce8303b", "252": "0x2E787629c3B7545271240A87197108823ce8303b", - "255": "0x2E787629c3B7545271240A87197108823ce8303b", "480": "0x2E787629c3B7545271240A87197108823ce8303b", "919": "0x2E787629c3B7545271240A87197108823ce8303b", "1088": "0xa69444C1034869f2b552FC674e6f18F1Af983af1", @@ -394,21 +365,16 @@ "1301": "0x2E787629c3B7545271240A87197108823ce8303b", "1328": "0x2E787629c3B7545271240A87197108823ce8303b", "1329": "0x2E787629c3B7545271240A87197108823ce8303b", + "1740": "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8", "1750": "0x2E787629c3B7545271240A87197108823ce8303b", "1868": "0x2E787629c3B7545271240A87197108823ce8303b", - "1890": "0x2E787629c3B7545271240A87197108823ce8303b", - "1891": "0x3912fAfb8b6902D0f07Cf86ffDF44d631b1E922A", "1946": "0x2E787629c3B7545271240A87197108823ce8303b", "2020": "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D", "2021": "0x2E787629c3B7545271240A87197108823ce8303b", "2221": "0x2E787629c3B7545271240A87197108823ce8303b", "2222": "0x2E787629c3B7545271240A87197108823ce8303b", - "2340": "0x2E787629c3B7545271240A87197108823ce8303b", - "2358": "0x2E787629c3B7545271240A87197108823ce8303b", - "2424": "0x2E787629c3B7545271240A87197108823ce8303b", "2442": "0x2E787629c3B7545271240A87197108823ce8303b", "2522": "0x4DEA3120CDe98cC1535977a569bC109cB9Ea7afe", - "2525": "0x2E787629c3B7545271240A87197108823ce8303b", "4200": "0x2E787629c3B7545271240A87197108823ce8303b", "4801": "0x2E787629c3B7545271240A87197108823ce8303b", "4913": "0x2E787629c3B7545271240A87197108823ce8303b", @@ -426,7 +392,7 @@ "42161": "0x2E787629c3B7545271240A87197108823ce8303b", "43113": "0x2E787629c3B7545271240A87197108823ce8303b", "43114": "0x2E787629c3B7545271240A87197108823ce8303b", - "48899": "0x4DEA3120CDe98cC1535977a569bC109cB9Ea7afe", + "48898": "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8", "48900": "0x2E787629c3B7545271240A87197108823ce8303b", "57054": "0x2E787629c3B7545271240A87197108823ce8303b", "57073": "0x2E787629c3B7545271240A87197108823ce8303b", @@ -447,6 +413,7 @@ "534351": "0x2E787629c3B7545271240A87197108823ce8303b", "534352": "0x2E787629c3B7545271240A87197108823ce8303b", "686868": "0x2E787629c3B7545271240A87197108823ce8303b", + "747474": "0x132C10b18874EEF45ef1E00Db9Ce266150162d93", "763373": "0x2E787629c3B7545271240A87197108823ce8303b", "808813": "0x2E787629c3B7545271240A87197108823ce8303b", "911867": "0x2E787629c3B7545271240A87197108823ce8303b", @@ -455,8 +422,6 @@ "11155420": "0x2E787629c3B7545271240A87197108823ce8303b", "168587773": "0x2E787629c3B7545271240A87197108823ce8303b", "994873017": "0x2E787629c3B7545271240A87197108823ce8303b", - "1380012617": "0x2E787629c3B7545271240A87197108823ce8303b", - "1918988905": "0x2E787629c3B7545271240A87197108823ce8303b", "1952959480": "0x2E787629c3B7545271240A87197108823ce8303b" }, "Api3ReaderProxyV1Factory": { @@ -473,7 +438,6 @@ "196": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "204": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "252": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "255": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "480": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "919": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "1088": "0x5e4d0bcA9B868444c934EE6Bc51c1eb22c3E8E35", @@ -486,21 +450,16 @@ "1301": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "1328": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "1329": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "1740": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "1750": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "1868": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "1890": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "1891": "0x3fE5D582471c4Afb922Dd4A15Aa8CC2CD56Be02B", "1946": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "2020": "0x1DCE40DC2AfA7131C4838c8BFf635ae9d198d1cE", "2021": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "2221": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "2222": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "2340": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "2358": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "2424": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "2442": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "2522": "0x0cA813F8757197a2a0b0b13871953800ed884082", - "2525": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "4200": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "4801": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "4913": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", @@ -518,7 +477,7 @@ "42161": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "43113": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "43114": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "48899": "0x0cA813F8757197a2a0b0b13871953800ed884082", + "48898": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "48900": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "57054": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "57073": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", @@ -539,6 +498,7 @@ "534351": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "534352": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "686868": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "747474": "0x0B902411AdA874d94D36F51a4ddCA81909Bd7233", "763373": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "808813": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "911867": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", @@ -547,8 +507,6 @@ "11155420": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "168587773": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "994873017": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "1380012617": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "1918988905": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", "1952959480": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381" }, "Api3MarketV2": { @@ -565,7 +523,6 @@ "196": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "204": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "252": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "255": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "480": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "919": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "1088": "0x98d37de031eB07A5e02663D1B756ebE0F419bCC8", @@ -578,21 +535,16 @@ "1301": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "1328": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "1329": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "1740": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "1750": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "1868": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "1890": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "1891": "0xEb989F8b25E754320c360e0Cb4EF4130AFFC31a7", "1946": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "2020": "0x2b4401E59780e44d3b1Fd2D41FCb3047c830F286", "2021": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "2221": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "2222": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "2340": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "2358": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "2424": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "2442": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "2522": "0xCa69E397Ccb2E93fc5Bd2e260f0E0A7bd325e4D9", - "2525": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "4200": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "4801": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "4913": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", @@ -610,7 +562,7 @@ "42161": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "43113": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "43114": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "48899": "0xCa69E397Ccb2E93fc5Bd2e260f0E0A7bd325e4D9", + "48898": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "48900": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "57054": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "57073": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", @@ -631,6 +583,7 @@ "534351": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "534352": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "686868": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "747474": "0x3625d7b7092d072D6A173fc17f00c1084BAb2122", "763373": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "808813": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "911867": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", @@ -639,8 +592,6 @@ "11155420": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "168587773": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "994873017": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "1380012617": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "1918988905": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "1952959480": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811" }, "OevAuctionHouse": { @@ -660,7 +611,6 @@ "196": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "204": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "252": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "255": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "480": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "919": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "1088": "0xa34c8EFBa26c47e9390409a90176EcD553d95Bff", @@ -673,21 +623,16 @@ "1301": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "1328": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "1329": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "1740": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "1750": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "1868": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "1890": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "1891": "0xC2961519a151c316f321f54db218E7820ad8196A", "1946": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "2020": "0x5aB00E30453EEAd35025A761ED65d51d74574C24", "2021": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "2221": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "2222": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "2340": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "2358": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "2424": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "2442": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "2522": "0xb331c8826d1FF3987AFFe318DFF3eAc900914Fdc", - "2525": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "4200": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "4801": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "4913": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", @@ -705,7 +650,7 @@ "42161": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "43113": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "43114": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "48899": "0xb331c8826d1FF3987AFFe318DFF3eAc900914Fdc", + "48898": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "48900": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "57054": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "57073": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", @@ -726,6 +671,7 @@ "534351": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "534352": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "686868": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "747474": "0x48c2c4e35a487b5d85C2aef394d34aD4959FA257", "763373": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "808813": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "911867": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", @@ -734,8 +680,6 @@ "11155420": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "168587773": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "994873017": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "1380012617": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "1918988905": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", "1952959480": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12" } } diff --git a/deployments/atleta-testnet/.chainId b/deployments/atleta-testnet/.chainId deleted file mode 100644 index 69d3fd47..00000000 --- a/deployments/atleta-testnet/.chainId +++ /dev/null @@ -1 +0,0 @@ -2340 \ No newline at end of file diff --git a/deployments/atleta-testnet/AccessControlRegistry.json b/deployments/atleta-testnet/AccessControlRegistry.json deleted file mode 100644 index f7f8b798..00000000 --- a/deployments/atleta-testnet/AccessControlRegistry.json +++ /dev/null @@ -1,526 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x69ccbaf4f70e8bf6c1a883037360773c44797e4448337074c48cf9f94006398e", - "result": { - "type": "0x2", - "hash": "0x69ccbaf4f70e8bf6c1a883037360773c44797e4448337074c48cf9f94006398e", - "nonce": "0x1c", - "blockHash": "0x60d3660e3be46c27a223596e27d64557eeb0e7915c6f2c03b83164737c59660e", - "blockNumber": "0x14f27", - "transactionIndex": "0x0", - "from": "0xbbca0709c54cd137145aab34c02754f582b94b08", - "to": null, - "value": "0x0", - "gas": "0x10e3cc", - "gasPrice": "0x1dcd6501", - "maxFeePerGas": "0x2101fc3e", - "maxPriorityFeePerGas": "0x1", - "input": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "creates": "0x584a7686f4a6162feb73b20b40a30652771f2f4a", - "chainId": "0x924", - "accessList": [], - "yParity": "0x1", - "v": "0x1", - "r": "0x31d1c33be285a6a243decd616a0456e8aa1388b3016d148bd638ed4bc600e753", - "s": "0x6c0b94a0dc80ec68a277e2e187db00ea575eccbf647e7d3d1150c4d6c833bc51" - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7036, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)7031_storage" - }, - "t_struct(RoleData)7031_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 7028, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 7030, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/atleta-testnet/AirseekerRegistry.json b/deployments/atleta-testnet/AirseekerRegistry.json deleted file mode 100644 index ff89196e..00000000 --- a/deployments/atleta-testnet/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x9ac585d1afad16a11465ed9c77c98904e7a817572de1c13d583482fe99640606", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 0, - "gasUsed": "2414949", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xf9de0c595d9e306f19a88678332a6b83ba7afc243398d8715bcedcae8c762815", - "transactionHash": "0x9ac585d1afad16a11465ed9c77c98904e7a817572de1c13d583482fe99640606", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 87488, - "transactionHash": "0x9ac585d1afad16a11465ed9c77c98904e7a817572de1c13d583482fe99640606", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xf9de0c595d9e306f19a88678332a6b83ba7afc243398d8715bcedcae8c762815" - } - ], - "blockNumber": 87488, - "cumulativeGasUsed": "2414949", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/atleta-testnet/Api3MarketV2.json b/deployments/atleta-testnet/Api3MarketV2.json deleted file mode 100644 index 93c00c07..00000000 --- a/deployments/atleta-testnet/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x3f2dff9f4112d30431bf00334de66917538c6c7883382ae28ccac547cf875645", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 0, - "gasUsed": "5105201", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc97c0084622f0335ca958f36f2336e98491fa8caaced6dbe9e5230a0cf2a566c", - "transactionHash": "0x3f2dff9f4112d30431bf00334de66917538c6c7883382ae28ccac547cf875645", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 87486, - "transactionHash": "0x3f2dff9f4112d30431bf00334de66917538c6c7883382ae28ccac547cf875645", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xc97c0084622f0335ca958f36f2336e98491fa8caaced6dbe9e5230a0cf2a566c" - } - ], - "blockNumber": 87486, - "cumulativeGasUsed": "5105201", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/atleta-testnet/Api3ReaderProxyV1Factory.json b/deployments/atleta-testnet/Api3ReaderProxyV1Factory.json deleted file mode 100644 index f2184222..00000000 --- a/deployments/atleta-testnet/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x730f438727a3e55748821f815ad0b93f10ea6e84811b42888efaf3e93f4925b6", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 0, - "gasUsed": "1923129", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x12e792efdf498de58ac462e87ccda4782ab8098e53ddfbac58480c224cfc74f4", - "transactionHash": "0x730f438727a3e55748821f815ad0b93f10ea6e84811b42888efaf3e93f4925b6", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 87483, - "transactionHash": "0x730f438727a3e55748821f815ad0b93f10ea6e84811b42888efaf3e93f4925b6", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x12e792efdf498de58ac462e87ccda4782ab8098e53ddfbac58480c224cfc74f4" - } - ], - "blockNumber": 87483, - "cumulativeGasUsed": "1923129", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/atleta-testnet/Api3ServerV1OevExtension.json b/deployments/atleta-testnet/Api3ServerV1OevExtension.json deleted file mode 100644 index 0584eb80..00000000 --- a/deployments/atleta-testnet/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0xd898df0680b1b368726f221e749be56fe3fd45259201735ce7cb8dba3d64e40e", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 0, - "gasUsed": "3262084", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x73538230026de10d0463e22b9ca90b87fd611110c9dc6ad0fdaae64cb6ed5300", - "transactionHash": "0xd898df0680b1b368726f221e749be56fe3fd45259201735ce7cb8dba3d64e40e", - "logs": [], - "blockNumber": 87478, - "cumulativeGasUsed": "3262084", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/atleta-testnet/GnosisSafeWithoutProxy.json b/deployments/atleta-testnet/GnosisSafeWithoutProxy.json deleted file mode 100644 index 7e3aa2b6..00000000 --- a/deployments/atleta-testnet/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1434 +0,0 @@ -{ - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 2 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/atleta-testnet/OwnableCallForwarder.json b/deployments/atleta-testnet/OwnableCallForwarder.json deleted file mode 100644 index 159c1dfe..00000000 --- a/deployments/atleta-testnet/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x6270e96ee7109e5675e14ed8576d74bf17b052cd37b2d5a6244b90542c503f6e", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 0, - "gasUsed": "410830", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0xea3630b938ac549a2fe16510abc2c863a076c639138076228b9569bdd817adf3", - "transactionHash": "0x6270e96ee7109e5675e14ed8576d74bf17b052cd37b2d5a6244b90542c503f6e", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 87417, - "transactionHash": "0x6270e96ee7109e5675e14ed8576d74bf17b052cd37b2d5a6244b90542c503f6e", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xea3630b938ac549a2fe16510abc2c863a076c639138076228b9569bdd817adf3" - }, - { - "transactionIndex": 0, - "blockNumber": 87417, - "transactionHash": "0x6270e96ee7109e5675e14ed8576d74bf17b052cd37b2d5a6244b90542c503f6e", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0xea3630b938ac549a2fe16510abc2c863a076c639138076228b9569bdd817adf3" - } - ], - "blockNumber": 87417, - "cumulativeGasUsed": "410830", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7408, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/inevm-testnet/.chainId b/deployments/inevm-testnet/.chainId deleted file mode 100644 index ca09891f..00000000 --- a/deployments/inevm-testnet/.chainId +++ /dev/null @@ -1 +0,0 @@ -2424 \ No newline at end of file diff --git a/deployments/inevm-testnet/AccessControlRegistry.json b/deployments/inevm-testnet/AccessControlRegistry.json deleted file mode 100644 index ff8a02b9..00000000 --- a/deployments/inevm-testnet/AccessControlRegistry.json +++ /dev/null @@ -1,505 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "receipt": { - "transactionHash": "0x64ceea54327e31e8c7ea4d8debd3df110dff3b677f02494a6e0ab6f575a673f5" - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/inevm-testnet/Api3MarketV2.json b/deployments/inevm-testnet/Api3MarketV2.json deleted file mode 100644 index 85ca2e17..00000000 --- a/deployments/inevm-testnet/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xd43ed5458f8f8457ec9d147168ff993d5a03a687e71304632262e4aa38ee4560", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "11720797", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x3749dd152e145715bc54535383603c2910d62240713fdcd9b4e03f16329fd004", - "transactionHash": "0xd43ed5458f8f8457ec9d147168ff993d5a03a687e71304632262e4aa38ee4560", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 730735, - "transactionHash": "0xd43ed5458f8f8457ec9d147168ff993d5a03a687e71304632262e4aa38ee4560", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x3749dd152e145715bc54535383603c2910d62240713fdcd9b4e03f16329fd004" - } - ], - "blockNumber": 730735, - "cumulativeGasUsed": "11720797", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm-testnet/Api3ReaderProxyV1Factory.json b/deployments/inevm-testnet/Api3ReaderProxyV1Factory.json deleted file mode 100644 index 21b1fdcd..00000000 --- a/deployments/inevm-testnet/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xd1e13745320d56fbb91e3a664c34ed04885254929b95d7b6345af699e94dbff7", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "4604924", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x84a668860a450786f7bec8a8eab5eb35cdeadfcb44f7e75f4e620eaa96995a81", - "transactionHash": "0xd1e13745320d56fbb91e3a664c34ed04885254929b95d7b6345af699e94dbff7", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 730733, - "transactionHash": "0xd1e13745320d56fbb91e3a664c34ed04885254929b95d7b6345af699e94dbff7", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x84a668860a450786f7bec8a8eab5eb35cdeadfcb44f7e75f4e620eaa96995a81" - } - ], - "blockNumber": 730733, - "cumulativeGasUsed": "4604924", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/inevm-testnet/Api3ServerV1.json b/deployments/inevm-testnet/Api3ServerV1.json deleted file mode 100644 index 21ec1454..00000000 --- a/deployments/inevm-testnet/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xc358a3cd664f4c9eff043817fa439843ac87366e203ae33822ea31c7464bd945", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "110176987", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x8d50467b13dacbf1fb59e58ae19787a2b4ab032b4aa9c39072a1864b81975267", - "transactionHash": "0xc358a3cd664f4c9eff043817fa439843ac87366e203ae33822ea31c7464bd945", - "logs": [], - "blockNumber": 392611, - "cumulativeGasUsed": "110176987", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm-testnet/Api3ServerV1OevExtension.json b/deployments/inevm-testnet/Api3ServerV1OevExtension.json deleted file mode 100644 index 4f9d4aaf..00000000 --- a/deployments/inevm-testnet/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x7a0ef18533fcd7f0e9db1f5c6c6fb2ec6a02c7b82676f63af54ef7662f23ccfa", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "8111879", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x99401f21c353d795728d5f3154044780d73de00c621a34e547d5d7867a52137a", - "transactionHash": "0x7a0ef18533fcd7f0e9db1f5c6c6fb2ec6a02c7b82676f63af54ef7662f23ccfa", - "logs": [], - "blockNumber": 730732, - "cumulativeGasUsed": "8111879", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm-testnet/GnosisSafeWithoutProxy.json b/deployments/inevm-testnet/GnosisSafeWithoutProxy.json deleted file mode 100644 index 1cc361e6..00000000 --- a/deployments/inevm-testnet/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x509154f798c899119be3fde12e36978f75465bf9cf538224c031dfcd70ef56e2", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0xBBCa0709c54CD137145AAb34c02754f582B94b08", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "44800169", - "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000100000000000000000000010000000000000000000000000100000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0xb8c60eb10e8c447d6d199ad4fbbf732d6c14a4599b5af4c2dea87e9b7209ebac", - "transactionHash": "0x509154f798c899119be3fde12e36978f75465bf9cf538224c031dfcd70ef56e2", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 775296, - "transactionHash": "0x509154f798c899119be3fde12e36978f75465bf9cf538224c031dfcd70ef56e2", - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0xb8c60eb10e8c447d6d199ad4fbbf732d6c14a4599b5af4c2dea87e9b7209ebac" - } - ], - "blockNumber": 775296, - "cumulativeGasUsed": "44800169", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 2 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/inevm-testnet/OwnableCallForwarder.json b/deployments/inevm-testnet/OwnableCallForwarder.json deleted file mode 100644 index 7f9ded8b..00000000 --- a/deployments/inevm-testnet/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x3cf4f57562f239a17a18291cf24bd9407c32c52d399426705f38378decf0ba5e", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "19999724", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0x93fda92c54ec86b25dc42e27d3951894b20e78ce0e4a59f939474f0726854a68", - "transactionHash": "0x3cf4f57562f239a17a18291cf24bd9407c32c52d399426705f38378decf0ba5e", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 392609, - "transactionHash": "0x3cf4f57562f239a17a18291cf24bd9407c32c52d399426705f38378decf0ba5e", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x93fda92c54ec86b25dc42e27d3951894b20e78ce0e4a59f939474f0726854a68" - }, - { - "transactionIndex": 1, - "blockNumber": 392609, - "transactionHash": "0x3cf4f57562f239a17a18291cf24bd9407c32c52d399426705f38378decf0ba5e", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0x93fda92c54ec86b25dc42e27d3951894b20e78ce0e4a59f939474f0726854a68" - } - ], - "blockNumber": 392609, - "cumulativeGasUsed": "19999724", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/inevm/.chainId b/deployments/inevm/.chainId deleted file mode 100644 index 842d5660..00000000 --- a/deployments/inevm/.chainId +++ /dev/null @@ -1 +0,0 @@ -2525 \ No newline at end of file diff --git a/deployments/inevm/AccessControlRegistry.json b/deployments/inevm/AccessControlRegistry.json deleted file mode 100644 index 09c2c54a..00000000 --- a/deployments/inevm/AccessControlRegistry.json +++ /dev/null @@ -1,505 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "receipt": { - "transactionHash": "0xcb77d546f9397e3e5efab64e7a2b068a0de4eb770519e1d6517cc96762c6bb2e" - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/inevm/AirseekerRegistry.json b/deployments/inevm/AirseekerRegistry.json deleted file mode 100644 index 481186f1..00000000 --- a/deployments/inevm/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xca5209073e0762791c519e3c1dd113f9d81f9f4f7a3160086fcf271e5073c44f", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2418719", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x64b79f76d7bd09aa2e74611ace2d384f5300c4edfc99f59b0ab61f8ef1bf4fba", - "transactionHash": "0xca5209073e0762791c519e3c1dd113f9d81f9f4f7a3160086fcf271e5073c44f", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 1963393, - "transactionHash": "0xca5209073e0762791c519e3c1dd113f9d81f9f4f7a3160086fcf271e5073c44f", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x64b79f76d7bd09aa2e74611ace2d384f5300c4edfc99f59b0ab61f8ef1bf4fba" - } - ], - "blockNumber": 1963393, - "cumulativeGasUsed": "2418719", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/inevm/Api3MarketV2.json b/deployments/inevm/Api3MarketV2.json deleted file mode 100644 index fa291114..00000000 --- a/deployments/inevm/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xe87bc54c3181965560494a6a5b9bd1a9e0b25813a03998611e105696df9c1604", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "5112320", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xcd13b758b6bc7cbfd72489e5a0d9c6d4c8256a1644614bd4ab6160e0e1fcfb61", - "transactionHash": "0xe87bc54c3181965560494a6a5b9bd1a9e0b25813a03998611e105696df9c1604", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 1963392, - "transactionHash": "0xe87bc54c3181965560494a6a5b9bd1a9e0b25813a03998611e105696df9c1604", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xcd13b758b6bc7cbfd72489e5a0d9c6d4c8256a1644614bd4ab6160e0e1fcfb61" - } - ], - "blockNumber": 1963392, - "cumulativeGasUsed": "5112320", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm/Api3ReaderProxyV1Factory.json b/deployments/inevm/Api3ReaderProxyV1Factory.json deleted file mode 100644 index 93a5af02..00000000 --- a/deployments/inevm/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x50b5834a2e0249ca45993214886142d9e1a8e3879c47d7cad064251fd63b2260", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "1926056", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x70ce7b6302fef862393f334854e1f4a378f31cc808a6f9ee3d05ceffdeefeab0", - "transactionHash": "0x50b5834a2e0249ca45993214886142d9e1a8e3879c47d7cad064251fd63b2260", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 1963389, - "transactionHash": "0x50b5834a2e0249ca45993214886142d9e1a8e3879c47d7cad064251fd63b2260", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x70ce7b6302fef862393f334854e1f4a378f31cc808a6f9ee3d05ceffdeefeab0" - } - ], - "blockNumber": 1963389, - "cumulativeGasUsed": "1926056", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/inevm/Api3ServerV1.json b/deployments/inevm/Api3ServerV1.json deleted file mode 100644 index f33502e0..00000000 --- a/deployments/inevm/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xc164bda73a958292bfa4e0a7bdd2c0f6e5cea573d272d0d68d7592d6a0ab8949", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2961590", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xdd2d086c2f4cf99b7c74314141329440e45e1db57792fae077b6cc0a1f2ad977", - "transactionHash": "0xc164bda73a958292bfa4e0a7bdd2c0f6e5cea573d272d0d68d7592d6a0ab8949", - "logs": [], - "blockNumber": 880574, - "cumulativeGasUsed": "2961590", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm/Api3ServerV1OevExtension.json b/deployments/inevm/Api3ServerV1OevExtension.json deleted file mode 100644 index 9ff54587..00000000 --- a/deployments/inevm/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x31896e72c2135d2d411e547171e4a9c5a76fb07be86d60f020fefcd722cac596", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "3267379", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xcf570f7b3365c5e92d9ff6fd35b69d6937f2415069e4f003cdbf6aecbb6a2549", - "transactionHash": "0x31896e72c2135d2d411e547171e4a9c5a76fb07be86d60f020fefcd722cac596", - "logs": [], - "blockNumber": 1963388, - "cumulativeGasUsed": "3267379", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/inevm/GnosisSafeWithoutProxy.json b/deployments/inevm/GnosisSafeWithoutProxy.json deleted file mode 100644 index 97a0d4ac..00000000 --- a/deployments/inevm/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x8a1e382073c20b1cd3e8714cd7232b02436a5e78e5caf66cafc10514f7a67abc", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "3037795", - "logsBloom": "0x000000004000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0x42e58efaa5ae8b19f573f7d818a1f2402e1f0acca05cc5f57f6400823118fc26", - "transactionHash": "0x8a1e382073c20b1cd3e8714cd7232b02436a5e78e5caf66cafc10514f7a67abc", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 2152525, - "transactionHash": "0x8a1e382073c20b1cd3e8714cd7232b02436a5e78e5caf66cafc10514f7a67abc", - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0x42e58efaa5ae8b19f573f7d818a1f2402e1f0acca05cc5f57f6400823118fc26" - } - ], - "blockNumber": 2152525, - "cumulativeGasUsed": "3037795", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 4 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/inevm/OwnableCallForwarder.json b/deployments/inevm/OwnableCallForwarder.json deleted file mode 100644 index 839a7634..00000000 --- a/deployments/inevm/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x73638168c7f4cba389c5fbe47f65fd513490af1bd9c3da8c50208a0ef023d5d4", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "410858", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0x130927dcfd890f2f82416aee0678ad38a8f278a6cb12807139302193d622738a", - "transactionHash": "0x73638168c7f4cba389c5fbe47f65fd513490af1bd9c3da8c50208a0ef023d5d4", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 880568, - "transactionHash": "0x73638168c7f4cba389c5fbe47f65fd513490af1bd9c3da8c50208a0ef023d5d4", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x130927dcfd890f2f82416aee0678ad38a8f278a6cb12807139302193d622738a" - }, - { - "transactionIndex": 1, - "blockNumber": 880568, - "transactionHash": "0x73638168c7f4cba389c5fbe47f65fd513490af1bd9c3da8c50208a0ef023d5d4", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0x130927dcfd890f2f82416aee0678ad38a8f278a6cb12807139302193d622738a" - } - ], - "blockNumber": 880568, - "cumulativeGasUsed": "410858", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/katana/.chainId b/deployments/katana/.chainId new file mode 100644 index 00000000..8c9f112b --- /dev/null +++ b/deployments/katana/.chainId @@ -0,0 +1 @@ +747474 \ No newline at end of file diff --git a/deployments/rari-arbitrum-sepolia-testnet/AccessControlRegistry.json b/deployments/katana/AccessControlRegistry.json similarity index 99% rename from deployments/rari-arbitrum-sepolia-testnet/AccessControlRegistry.json rename to deployments/katana/AccessControlRegistry.json index 93fa46b4..7dc17845 100644 --- a/deployments/rari-arbitrum-sepolia-testnet/AccessControlRegistry.json +++ b/deployments/katana/AccessControlRegistry.json @@ -342,25 +342,25 @@ "type": "function" } ], - "transactionHash": "0x86244ba70db3a690fd9d52941c6be5142e6c1144e265d9581d9e9a1ac5361509", + "transactionHash": "0xe62ad634e6639de65b88a16b93bb731f09849d6187abfe74d4ef25ce5db1cdbe", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "4123506", + "gasUsed": "1062014", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xccbac161c943cffa4805a9f9b6f3b4e8f8003ff3ec3c23153bfb4362c72bb3b8", - "transactionHash": "0x86244ba70db3a690fd9d52941c6be5142e6c1144e265d9581d9e9a1ac5361509", + "blockHash": "0x0e69c32ff452154f32b6e9cc4729b6e6e5a0c78d3aac69da605a5ac922f884d5", + "transactionHash": "0xe62ad634e6639de65b88a16b93bb731f09849d6187abfe74d4ef25ce5db1cdbe", "logs": [], - "blockNumber": 251945, - "cumulativeGasUsed": "4123506", + "blockNumber": 3660456, + "cumulativeGasUsed": "1108170", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "244b8e05fc2166c1983c7be433cf9254", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", @@ -452,12 +452,12 @@ "storageLayout": { "storage": [ { - "astId": 11627, + "astId": 7036, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "_roles", "offset": 0, "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)11622_storage)" + "type": "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)" } ], "types": { @@ -483,19 +483,19 @@ "numberOfBytes": "32", "value": "t_bool" }, - "t_mapping(t_bytes32,t_struct(RoleData)11622_storage)": { + "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct AccessControl.RoleData)", "numberOfBytes": "32", - "value": "t_struct(RoleData)11622_storage" + "value": "t_struct(RoleData)7031_storage" }, - "t_struct(RoleData)11622_storage": { + "t_struct(RoleData)7031_storage": { "encoding": "inplace", "label": "struct AccessControl.RoleData", "members": [ { - "astId": 11619, + "astId": 7028, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "members", "offset": 0, @@ -503,7 +503,7 @@ "type": "t_mapping(t_address,t_bool)" }, { - "astId": 11621, + "astId": 7030, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "adminRole", "offset": 0, diff --git a/deployments/inevm-testnet/AirseekerRegistry.json b/deployments/katana/AirseekerRegistry.json similarity index 98% rename from deployments/inevm-testnet/AirseekerRegistry.json rename to deployments/katana/AirseekerRegistry.json index 88eeb2dd..42f86925 100644 --- a/deployments/inevm-testnet/AirseekerRegistry.json +++ b/deployments/katana/AirseekerRegistry.json @@ -1,5 +1,5 @@ { - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "address": "0x48c2c4e35a487b5d85C2aef394d34aD4959FA257", "abi": [ { "inputs": [ @@ -723,40 +723,40 @@ "type": "function" } ], - "transactionHash": "0x41e078d8e03f54d0794c8947a607651c2ca1f6706368ba6ac09a2106a609393a", + "transactionHash": "0x9758faffca07f1fe8b291cf3c51c3399b4417069b291885f69eaa81dc4a965a9", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "5852271", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x5088eff95699b9fd3c06fcc3a5eac69a796d6ba9d2e9e860e7e153cbb2a1deaf", - "transactionHash": "0x41e078d8e03f54d0794c8947a607651c2ca1f6706368ba6ac09a2106a609393a", + "gasUsed": "2414937", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000001000000000000000000000010000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000200000000010000000000000020000000000020000000000000000000000000000000000000000000000000000000", + "blockHash": "0xfc9e6c47554b794e254b9e38b232168205d8aeb302e1aa0fdac92451859213e3", + "transactionHash": "0x9758faffca07f1fe8b291cf3c51c3399b4417069b291885f69eaa81dc4a965a9", "logs": [ { "transactionIndex": 1, - "blockNumber": 730736, - "transactionHash": "0x41e078d8e03f54d0794c8947a607651c2ca1f6706368ba6ac09a2106a609393a", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "blockNumber": 3660484, + "transactionHash": "0x9758faffca07f1fe8b291cf3c51c3399b4417069b291885f69eaa81dc4a965a9", + "address": "0x48c2c4e35a487b5d85C2aef394d34aD4959FA257", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" + "0x0000000000000000000000003625d7b7092d072d6a173fc17f00c1084bab2122" ], "data": "0x", "logIndex": 0, - "blockHash": "0x5088eff95699b9fd3c06fcc3a5eac69a796d6ba9d2e9e860e7e153cbb2a1deaf" + "blockHash": "0xfc9e6c47554b794e254b9e38b232168205d8aeb302e1aa0fdac92451859213e3" } ], - "blockNumber": 730736, - "cumulativeGasUsed": "5852271", + "blockNumber": 3660484, + "cumulativeGasUsed": "2469469", "status": 1, "byzantium": true }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], + "args": ["0x3625d7b7092d072D6A173fc17f00c1084BAb2122", "0xCEd8153AdF62F31d940f230397b30622298a445d"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", @@ -1057,7 +1057,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_owner", "offset": 0, @@ -1086,7 +1086,7 @@ "label": "activeDataFeedIds", "offset": 0, "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 915, @@ -1094,7 +1094,7 @@ "label": "activeDapiNames", "offset": 0, "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 919, @@ -1176,27 +1176,27 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(Bytes32Set)19019_storage": { + "t_struct(Bytes32Set)19194_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Bytes32Set", "members": [ { - "astId": 19018, + "astId": 19193, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_inner", "offset": 0, "slot": "0", - "type": "t_struct(Set)18825_storage" + "type": "t_struct(Set)19000_storage" } ], "numberOfBytes": "64" }, - "t_struct(Set)18825_storage": { + "t_struct(Set)19000_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Set", "members": [ { - "astId": 18820, + "astId": 18995, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_values", "offset": 0, @@ -1204,7 +1204,7 @@ "type": "t_array(t_bytes32)dyn_storage" }, { - "astId": 18824, + "astId": 18999, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_positions", "offset": 0, diff --git a/deployments/kroma-sepolia-testnet/Api3MarketV2.json b/deployments/katana/Api3MarketV2.json similarity index 99% rename from deployments/kroma-sepolia-testnet/Api3MarketV2.json rename to deployments/katana/Api3MarketV2.json index 2b86391f..360d4a01 100644 --- a/deployments/kroma-sepolia-testnet/Api3MarketV2.json +++ b/deployments/katana/Api3MarketV2.json @@ -1,5 +1,5 @@ { - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "address": "0x3625d7b7092d072D6A173fc17f00c1084BAb2122", "abi": [ { "inputs": [ @@ -1271,40 +1271,40 @@ "type": "function" } ], - "transactionHash": "0x4abb88358f850351f6dcd999140d3f8dd6e09fe17d55e791abe0254828175a24", + "transactionHash": "0x1195ad528aac540b737c9a1ccbb31de4b07a13b6e7fa6a32b26d178c7924b993", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "5105201", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x29508b080bc3cbf90a02e8c207de25db3b28aef6df186b1db452fdecd68092a2", - "transactionHash": "0x4abb88358f850351f6dcd999140d3f8dd6e09fe17d55e791abe0254828175a24", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000200800000000000000000000008000000000400000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000080000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x60967ea7d5f381597f1afc5b58af9baef97d37f4514ccbaee779926973d7225f", + "transactionHash": "0x1195ad528aac540b737c9a1ccbb31de4b07a13b6e7fa6a32b26d178c7924b993", "logs": [ { "transactionIndex": 1, - "blockNumber": 20666454, - "transactionHash": "0x4abb88358f850351f6dcd999140d3f8dd6e09fe17d55e791abe0254828175a24", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "blockNumber": 3660479, + "transactionHash": "0x1195ad528aac540b737c9a1ccbb31de4b07a13b6e7fa6a32b26d178c7924b993", + "address": "0x3625d7b7092d072D6A173fc17f00c1084BAb2122", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + "0x0000000000000000000000003e60892ea588348c98ba6e087a1055a24fe53cff" ], "data": "0x", "logIndex": 0, - "blockHash": "0x29508b080bc3cbf90a02e8c207de25db3b28aef6df186b1db452fdecd68092a2" + "blockHash": "0x60967ea7d5f381597f1afc5b58af9baef97d37f4514ccbaee779926973d7225f" } ], - "blockNumber": 20666454, - "cumulativeGasUsed": "5159713", + "blockNumber": 3660479, + "cumulativeGasUsed": "5151357", "status": 1, "byzantium": true }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], + "args": ["0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "0x0B902411AdA874d94D36F51a4ddCA81909Bd7233", 10], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", @@ -1781,7 +1781,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", "label": "_owner", "offset": 0, diff --git a/deployments/lightlink-sepolia-testnet/Api3ReaderProxyV1Factory.json b/deployments/katana/Api3ReaderProxyV1Factory.json similarity index 98% rename from deployments/lightlink-sepolia-testnet/Api3ReaderProxyV1Factory.json rename to deployments/katana/Api3ReaderProxyV1Factory.json index 9d0f8cbb..2dcc6ce4 100644 --- a/deployments/lightlink-sepolia-testnet/Api3ReaderProxyV1Factory.json +++ b/deployments/katana/Api3ReaderProxyV1Factory.json @@ -1,5 +1,5 @@ { - "address": "0x3fE5D582471c4Afb922Dd4A15Aa8CC2CD56Be02B", + "address": "0x0B902411AdA874d94D36F51a4ddCA81909Bd7233", "abi": [ { "inputs": [ @@ -194,40 +194,40 @@ "type": "function" } ], - "transactionHash": "0x244de10596fc8890b6d109ef834a584fff7e07d677d843b241af5fd690710651", + "transactionHash": "0x85666b9aa646ccedbf77eff6bb7fc22e16c93f8d1aa047addd62b012299e99f1", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", + "contractAddress": null, + "transactionIndex": 1, "gasUsed": "1923129", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000010000000008000000000000000000000000000000000000000000000000000000008000000001000000000000000000000000000000000000020000000000000000000800000000000000000100000000000000400000000000000000000000000000000000000000400000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x484a3b608441669755584bc3abd5ad51e9176a1a38e0e09e684b8eb2042956e8", - "transactionHash": "0x244de10596fc8890b6d109ef834a584fff7e07d677d843b241af5fd690710651", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000008000000000400000000001000000001000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x8dab8154248d3afda89c0b65d8120ea2791c498977f563e55b6ea4456f3689f6", + "transactionHash": "0x85666b9aa646ccedbf77eff6bb7fc22e16c93f8d1aa047addd62b012299e99f1", "logs": [ { - "transactionIndex": 0, - "blockNumber": 112458632, - "transactionHash": "0x244de10596fc8890b6d109ef834a584fff7e07d677d843b241af5fd690710651", - "address": "0x3fE5D582471c4Afb922Dd4A15Aa8CC2CD56Be02B", + "transactionIndex": 1, + "blockNumber": 3660471, + "transactionHash": "0x85666b9aa646ccedbf77eff6bb7fc22e16c93f8d1aa047addd62b012299e99f1", + "address": "0x0B902411AdA874d94D36F51a4ddCA81909Bd7233", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000c02ea0f403d5f3d45a4f1d0d817e7a2601346c9e" + "0x0000000000000000000000003e60892ea588348c98ba6e087a1055a24fe53cff" ], "data": "0x", "logIndex": 0, - "blockHash": "0x484a3b608441669755584bc3abd5ad51e9176a1a38e0e09e684b8eb2042956e8" + "blockHash": "0x8dab8154248d3afda89c0b65d8120ea2791c498977f563e55b6ea4456f3689f6" } ], - "blockNumber": 112458632, - "cumulativeGasUsed": "1923129", + "blockNumber": 3660471, + "cumulativeGasUsed": "1969285", "status": 1, "byzantium": true }, - "args": ["0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", "0x3912fAfb8b6902D0f07Cf86ffDF44d631b1E922A"], + "args": ["0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "0x132C10b18874EEF45ef1E00Db9Ce266150162d93"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", @@ -305,7 +305,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", "label": "_owner", "offset": 0, diff --git a/deployments/atleta-testnet/Api3ServerV1.json b/deployments/katana/Api3ServerV1.json similarity index 99% rename from deployments/atleta-testnet/Api3ServerV1.json rename to deployments/katana/Api3ServerV1.json index 4e4bea15..d2a045f9 100644 --- a/deployments/atleta-testnet/Api3ServerV1.json +++ b/deployments/katana/Api3ServerV1.json @@ -1,5 +1,5 @@ { - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", + "address": "0xCEd8153AdF62F31d940f230397b30622298a445d", "abi": [ { "inputs": [ @@ -741,26 +741,26 @@ "type": "function" } ], - "transactionHash": "0xeb7885fc8bf9083ab383925aa2154ae81399afa0e5cf1d25ce69d40397f68f57", + "transactionHash": "0x03849f93c1bf256bf8bf1fa79438cca214e4e27c31d2c253f270ac81a42fe63b", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, - "transactionIndex": 0, + "transactionIndex": 1, "gasUsed": "2961690", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x06ffe964a2d16f64c27a5f6df9e8cc96050ce6e6dc5c8e3630aa6b9424e6546e", - "transactionHash": "0xeb7885fc8bf9083ab383925aa2154ae81399afa0e5cf1d25ce69d40397f68f57", + "blockHash": "0x3f12f9d6b271f4346e8c77528359b289f5794f5ecfa17910e3ef1146db32508b", + "transactionHash": "0x03849f93c1bf256bf8bf1fa79438cca214e4e27c31d2c253f270ac81a42fe63b", "logs": [], - "blockNumber": 87476, - "cumulativeGasUsed": "2961690", + "blockNumber": 3660461, + "cumulativeGasUsed": "3013434", "status": 1, "byzantium": true }, "args": [ "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" + "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf" ], "numDeployments": 1, "solcInputHash": "69404b24fc871d37136875d5dfb0242e", diff --git a/deployments/kroma/Api3ServerV1OevExtension.json b/deployments/katana/Api3ServerV1OevExtension.json similarity index 99% rename from deployments/kroma/Api3ServerV1OevExtension.json rename to deployments/katana/Api3ServerV1OevExtension.json index b972a48a..f0189ae0 100644 --- a/deployments/kroma/Api3ServerV1OevExtension.json +++ b/deployments/katana/Api3ServerV1OevExtension.json @@ -1,5 +1,5 @@ { - "address": "0x2E787629c3B7545271240A87197108823ce8303b", + "address": "0x132C10b18874EEF45ef1E00Db9Ce266150162d93", "abi": [ { "inputs": [ @@ -646,27 +646,27 @@ "type": "receive" } ], - "transactionHash": "0xecd48389d32317bcb7f90e2b649638505c3353565bba0c41930bec5ef0f5ab55", + "transactionHash": "0x36afd71ae6f3ec4a072e2e61d513b07f0aa76546cce72381a05a708984855322", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "3262084", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc7324e43fd27c26219856f6ab931643fd471128a6ec1ce55a98e10917352119e", - "transactionHash": "0xecd48389d32317bcb7f90e2b649638505c3353565bba0c41930bec5ef0f5ab55", + "blockHash": "0x64d3a7ce384fb616e2af66faa5728caf459d4b33ee0ffbe9224b6a3d4ae33f35", + "transactionHash": "0x36afd71ae6f3ec4a072e2e61d513b07f0aa76546cce72381a05a708984855322", "logs": [], - "blockNumber": 18080785, - "cumulativeGasUsed": "3308280", + "blockNumber": 3660466, + "cumulativeGasUsed": "3308240", "status": 1, "byzantium": true }, "args": [ "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" + "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", + "0xCEd8153AdF62F31d940f230397b30622298a445d" ], "numDeployments": 1, "solcInputHash": "69404b24fc871d37136875d5dfb0242e", diff --git a/deployments/kroma/GnosisSafeWithoutProxy.json b/deployments/katana/GnosisSafeWithoutProxy.json similarity index 99% rename from deployments/kroma/GnosisSafeWithoutProxy.json rename to deployments/katana/GnosisSafeWithoutProxy.json index a469a83c..5f2e6602 100644 --- a/deployments/kroma/GnosisSafeWithoutProxy.json +++ b/deployments/katana/GnosisSafeWithoutProxy.json @@ -1044,7 +1044,7 @@ "type": "receive" } ], - "transactionHash": "0x6e97e8b0bfc3282f36d78d0ebc19f4e2d53d48a7894aa16709185f3aaaf2a3e6", + "transactionHash": "0x687e110eff92c0695728b99d11c4dc0cba0dc77f6bbf06cbb4d23ccc9eb7e156", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", @@ -1052,13 +1052,13 @@ "transactionIndex": 1, "gasUsed": "3029150", "logsBloom": "0x000000004000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0xb3ecd457ec66c5bb6955527d4555dde1e9b2398eb8782192f96419e3ad7c4f16", - "transactionHash": "0x6e97e8b0bfc3282f36d78d0ebc19f4e2d53d48a7894aa16709185f3aaaf2a3e6", + "blockHash": "0xd64d29e36818ade8d078678ee7d9d8a04f2762b5cf1125d04fdd92703768feda", + "transactionHash": "0x687e110eff92c0695728b99d11c4dc0cba0dc77f6bbf06cbb4d23ccc9eb7e156", "logs": [ { "transactionIndex": 1, - "blockNumber": 21135106, - "transactionHash": "0x6e97e8b0bfc3282f36d78d0ebc19f4e2d53d48a7894aa16709185f3aaaf2a3e6", + "blockNumber": 3660446, + "transactionHash": "0x687e110eff92c0695728b99d11c4dc0cba0dc77f6bbf06cbb4d23ccc9eb7e156", "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", "topics": [ "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", @@ -1066,11 +1066,11 @@ ], "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", "logIndex": 0, - "blockHash": "0xb3ecd457ec66c5bb6955527d4555dde1e9b2398eb8782192f96419e3ad7c4f16" + "blockHash": "0xd64d29e36818ade8d078678ee7d9d8a04f2762b5cf1125d04fdd92703768feda" } ], - "blockNumber": 21135106, - "cumulativeGasUsed": "3086510", + "blockNumber": 3660446, + "cumulativeGasUsed": "3075306", "status": 1, "byzantium": true }, diff --git a/deployments/kroma/OwnableCallForwarder.json b/deployments/katana/OwnableCallForwarder.json similarity index 94% rename from deployments/kroma/OwnableCallForwarder.json rename to deployments/katana/OwnableCallForwarder.json index 71865f20..b7a84ef2 100644 --- a/deployments/kroma/OwnableCallForwarder.json +++ b/deployments/katana/OwnableCallForwarder.json @@ -1,5 +1,5 @@ { - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "address": "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "abi": [ { "inputs": [ @@ -89,22 +89,22 @@ "type": "function" } ], - "transactionHash": "0x7041a238045d0d52b2a1c65e50161ddb9a3a58597fffdbcebf48408b0b3de678", + "transactionHash": "0x834310053bb23e154af1d69c1eb42c6d4797e838f4c2e26317fd45c45e0be958", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "410830", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0x11fa7f285f16ddeda409d9ba616a72822732037b5f0b9a985c88a4fb5034e5b3", - "transactionHash": "0x7041a238045d0d52b2a1c65e50161ddb9a3a58597fffdbcebf48408b0b3de678", + "logsBloom": "0x00000000000000000000000000000000001000000000000000800000800000001000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000001000000000000000000000000000000000000020200000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000080000000000000000000000000000000", + "blockHash": "0x6335f5a77369fbdd4dcd301bb71c6b651dd9a9d081f9a641b91bdb0f485fbe0b", + "transactionHash": "0x834310053bb23e154af1d69c1eb42c6d4797e838f4c2e26317fd45c45e0be958", "logs": [ { "transactionIndex": 1, - "blockNumber": 10426562, - "transactionHash": "0x7041a238045d0d52b2a1c65e50161ddb9a3a58597fffdbcebf48408b0b3de678", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "blockNumber": 3660451, + "transactionHash": "0x834310053bb23e154af1d69c1eb42c6d4797e838f4c2e26317fd45c45e0be958", + "address": "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", @@ -112,31 +112,31 @@ ], "data": "0x", "logIndex": 0, - "blockHash": "0x11fa7f285f16ddeda409d9ba616a72822732037b5f0b9a985c88a4fb5034e5b3" + "blockHash": "0x6335f5a77369fbdd4dcd301bb71c6b651dd9a9d081f9a641b91bdb0f485fbe0b" }, { "transactionIndex": 1, - "blockNumber": 10426562, - "transactionHash": "0x7041a238045d0d52b2a1c65e50161ddb9a3a58597fffdbcebf48408b0b3de678", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "blockNumber": 3660451, + "transactionHash": "0x834310053bb23e154af1d69c1eb42c6d4797e838f4c2e26317fd45c45e0be958", + "address": "0x3e60892Ea588348C98bA6E087a1055a24fE53CFf", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" + "0x0000000000000000000000002aae699ed04bbbd068f67a5b3c813ebb35f2c9e8" ], "data": "0x", "logIndex": 1, - "blockHash": "0x11fa7f285f16ddeda409d9ba616a72822732037b5f0b9a985c88a4fb5034e5b3" + "blockHash": "0x6335f5a77369fbdd4dcd301bb71c6b651dd9a9d081f9a641b91bdb0f485fbe0b" } ], - "blockNumber": 10426562, - "cumulativeGasUsed": "465414", + "blockNumber": 3660451, + "cumulativeGasUsed": "456986", "status": 1, "byzantium": true }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], + "args": ["0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8"], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", @@ -183,7 +183,7 @@ "storageLayout": { "storage": [ { - "astId": 13220, + "astId": 7408, "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", "label": "_owner", "offset": 0, diff --git a/deployments/kroma-sepolia-testnet/.chainId b/deployments/kroma-sepolia-testnet/.chainId deleted file mode 100644 index 4c50c5be..00000000 --- a/deployments/kroma-sepolia-testnet/.chainId +++ /dev/null @@ -1 +0,0 @@ -2358 \ No newline at end of file diff --git a/deployments/kroma-sepolia-testnet/AccessControlRegistry.json b/deployments/kroma-sepolia-testnet/AccessControlRegistry.json deleted file mode 100644 index 848661c5..00000000 --- a/deployments/kroma-sepolia-testnet/AccessControlRegistry.json +++ /dev/null @@ -1,505 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "receipt": { - "transactionHash": "0xdb070fd3136dada4b93e512d90aee020c6ed23b5e05d44dec9ee4f64ec9bb999" - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/kroma-sepolia-testnet/AirseekerRegistry.json b/deployments/kroma-sepolia-testnet/AirseekerRegistry.json deleted file mode 100644 index fc11c0a1..00000000 --- a/deployments/kroma-sepolia-testnet/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xf84ea791b3f60d6ff4144f769747cfa2cb113d8f6e8f57d64403c8acdb5be1f6", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2414949", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x58974bef81c456307368fb45579c0615b8c0483ff59945356ce99dfb8391237c", - "transactionHash": "0xf84ea791b3f60d6ff4144f769747cfa2cb113d8f6e8f57d64403c8acdb5be1f6", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 20666458, - "transactionHash": "0xf84ea791b3f60d6ff4144f769747cfa2cb113d8f6e8f57d64403c8acdb5be1f6", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x58974bef81c456307368fb45579c0615b8c0483ff59945356ce99dfb8391237c" - } - ], - "blockNumber": 20666458, - "cumulativeGasUsed": "2461073", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/kroma-sepolia-testnet/Api3ServerV1.json b/deployments/kroma-sepolia-testnet/Api3ServerV1.json deleted file mode 100644 index 72d09594..00000000 --- a/deployments/kroma-sepolia-testnet/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x3773c79510486a21bdaaffe13b10a87c67dfd0f2265d144b8edda30d7adedf90", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2961690", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xeb4553d286f12e66d34b7c6775c9c7c47aa54b997810c7054f1902fd85541b1d", - "transactionHash": "0x3773c79510486a21bdaaffe13b10a87c67dfd0f2265d144b8edda30d7adedf90", - "logs": [], - "blockNumber": 13012245, - "cumulativeGasUsed": "3007922", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/kroma-sepolia-testnet/OwnableCallForwarder.json b/deployments/kroma-sepolia-testnet/OwnableCallForwarder.json deleted file mode 100644 index 0012f53a..00000000 --- a/deployments/kroma-sepolia-testnet/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xa220782e9312e8f7cc1879151be3043ac568eb1d297263d9a1e80424757f388b", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "410830", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0xd96645f316ecd643634b65b8160fd0fa64252a9a91e9226fef7c631b65160ab8", - "transactionHash": "0xa220782e9312e8f7cc1879151be3043ac568eb1d297263d9a1e80424757f388b", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 13012238, - "transactionHash": "0xa220782e9312e8f7cc1879151be3043ac568eb1d297263d9a1e80424757f388b", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xd96645f316ecd643634b65b8160fd0fa64252a9a91e9226fef7c631b65160ab8" - }, - { - "transactionIndex": 1, - "blockNumber": 13012238, - "transactionHash": "0xa220782e9312e8f7cc1879151be3043ac568eb1d297263d9a1e80424757f388b", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0xd96645f316ecd643634b65b8160fd0fa64252a9a91e9226fef7c631b65160ab8" - } - ], - "blockNumber": 13012238, - "cumulativeGasUsed": "457062", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/kroma/.chainId b/deployments/kroma/.chainId deleted file mode 100644 index b8e817d4..00000000 --- a/deployments/kroma/.chainId +++ /dev/null @@ -1 +0,0 @@ -255 \ No newline at end of file diff --git a/deployments/kroma/AccessControlRegistry.json b/deployments/kroma/AccessControlRegistry.json deleted file mode 100644 index 408385f2..00000000 --- a/deployments/kroma/AccessControlRegistry.json +++ /dev/null @@ -1,505 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "receipt": { - "transactionHash": "0xf4007910a6e63e907fa8eaf799507ffe52a5323d9736c93b3a7f194496217a42" - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/kroma/Api3MarketV2.json b/deployments/kroma/Api3MarketV2.json deleted file mode 100644 index 548d5809..00000000 --- a/deployments/kroma/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xc4e55fe2d23f9e2935611acb35cb5ac0c5eb8a35ec12df5edebdcd098f0512a1", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 6, - "gasUsed": "5105201", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x573c692b5f21bd02f878d74c86b9e2154ee89a7e4b387b45009e7800f8b2ec3d", - "transactionHash": "0xc4e55fe2d23f9e2935611acb35cb5ac0c5eb8a35ec12df5edebdcd098f0512a1", - "logs": [ - { - "transactionIndex": 6, - "blockNumber": 18080795, - "transactionHash": "0xc4e55fe2d23f9e2935611acb35cb5ac0c5eb8a35ec12df5edebdcd098f0512a1", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x573c692b5f21bd02f878d74c86b9e2154ee89a7e4b387b45009e7800f8b2ec3d" - } - ], - "blockNumber": 18080795, - "cumulativeGasUsed": "5256397", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/kroma/Api3ReaderProxyV1Factory.json b/deployments/kroma/Api3ReaderProxyV1Factory.json deleted file mode 100644 index 7ff99bec..00000000 --- a/deployments/kroma/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xf5c6cf279c85b05f11fe1d82b757ec5793940d4af60fe419705f7efca48d8835", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "1923129", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xf8e15f540898cc05eef57ba2544320d3a371991cff26916a0914326a9b3dc6f0", - "transactionHash": "0xf5c6cf279c85b05f11fe1d82b757ec5793940d4af60fe419705f7efca48d8835", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 18080790, - "transactionHash": "0xf5c6cf279c85b05f11fe1d82b757ec5793940d4af60fe419705f7efca48d8835", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xf8e15f540898cc05eef57ba2544320d3a371991cff26916a0914326a9b3dc6f0" - } - ], - "blockNumber": 18080790, - "cumulativeGasUsed": "1977713", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/.chainId b/deployments/lightlink-sepolia-testnet/.chainId deleted file mode 100644 index ab6a6663..00000000 --- a/deployments/lightlink-sepolia-testnet/.chainId +++ /dev/null @@ -1 +0,0 @@ -1891 \ No newline at end of file diff --git a/deployments/lightlink-sepolia-testnet/AccessControlRegistry.json b/deployments/lightlink-sepolia-testnet/AccessControlRegistry.json deleted file mode 100644 index 4c53a5ff..00000000 --- a/deployments/lightlink-sepolia-testnet/AccessControlRegistry.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "address": "0xDDe9CE3736939d59A70c446c8A4AB6714CB4a41a", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x2d247199afd098779b08a6b22f22fc983c80e6f2b030dde3a9f13fe2bb00b045", - "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0xDDe9CE3736939d59A70c446c8A4AB6714CB4a41a", - "transactionIndex": 0, - "gasUsed": "1059987", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xfeb06b6b4773c860fea90807b2aa4a4769b37b500e113c2453580c469c7eba70", - "transactionHash": "0x2d247199afd098779b08a6b22f22fc983c80e6f2b030dde3a9f13fe2bb00b045", - "logs": [], - "blockNumber": 80919126, - "cumulativeGasUsed": "1059987", - "status": 1, - "byzantium": true - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/AirseekerRegistry.json b/deployments/lightlink-sepolia-testnet/AirseekerRegistry.json deleted file mode 100644 index fccd52a7..00000000 --- a/deployments/lightlink-sepolia-testnet/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0xC2961519a151c316f321f54db218E7820ad8196A", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x17326eb70d6785aa945892267e5226d1b762d7b478a0856abbe7471609e81f81", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "2414949", - "logsBloom": "0x00080000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000004000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000800000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000020000000000000000000000000080000000000000000000000000000000000000000", - "blockHash": "0xeaa9d7ea3fcc4c5c0c720bf6144351f71c6923563076c57a44b1d622103f359d", - "transactionHash": "0x17326eb70d6785aa945892267e5226d1b762d7b478a0856abbe7471609e81f81", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 112458658, - "transactionHash": "0x17326eb70d6785aa945892267e5226d1b762d7b478a0856abbe7471609e81f81", - "address": "0xC2961519a151c316f321f54db218E7820ad8196A", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000eb989f8b25e754320c360e0cb4ef4130affc31a7" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xeaa9d7ea3fcc4c5c0c720bf6144351f71c6923563076c57a44b1d622103f359d" - } - ], - "blockNumber": 112458658, - "cumulativeGasUsed": "2414949", - "status": 1, - "byzantium": true - }, - "args": ["0xEb989F8b25E754320c360e0Cb4EF4130AFFC31a7", "0x3d0Ca9e5490E36627beA9a8cb3cefa12D7cDc0af"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/Api3MarketV2.json b/deployments/lightlink-sepolia-testnet/Api3MarketV2.json deleted file mode 100644 index 3ba2075f..00000000 --- a/deployments/lightlink-sepolia-testnet/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0xEb989F8b25E754320c360e0Cb4EF4130AFFC31a7", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x58b5f4b8e60f68666afc8f71aaf42d39d7b976132886624f3a84549ffd7a525a", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "5105201", - "logsBloom": "0x00000000000000040000000000000000000000000000000000800000000000000000000000000000000000010000000008000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000040000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000080000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x7e7d21764ca7cfcd7e305e83e35e5ce6c81af22dc9abc04e405e4d91d3525622", - "transactionHash": "0x58b5f4b8e60f68666afc8f71aaf42d39d7b976132886624f3a84549ffd7a525a", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 112458648, - "transactionHash": "0x58b5f4b8e60f68666afc8f71aaf42d39d7b976132886624f3a84549ffd7a525a", - "address": "0xEb989F8b25E754320c360e0Cb4EF4130AFFC31a7", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000c02ea0f403d5f3d45a4f1d0d817e7a2601346c9e" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x7e7d21764ca7cfcd7e305e83e35e5ce6c81af22dc9abc04e405e4d91d3525622" - } - ], - "blockNumber": 112458648, - "cumulativeGasUsed": "5105201", - "status": 1, - "byzantium": true - }, - "args": ["0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", "0x3fE5D582471c4Afb922Dd4A15Aa8CC2CD56Be02B", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/Api3ServerV1.json b/deployments/lightlink-sepolia-testnet/Api3ServerV1.json deleted file mode 100644 index e31bebbc..00000000 --- a/deployments/lightlink-sepolia-testnet/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x3d0Ca9e5490E36627beA9a8cb3cefa12D7cDc0af", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xccd3a7d102a482617cc7fb4c1931a5229aad0c90d2cfcf0f1e6be01d6b23d2c2", - "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x3d0Ca9e5490E36627beA9a8cb3cefa12D7cDc0af", - "transactionIndex": 0, - "gasUsed": "2955452", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x67430b76be4c2d3d20211b8e74ef904fc8d339d37f5c93bb2992e692fe7ee09a", - "transactionHash": "0xccd3a7d102a482617cc7fb4c1931a5229aad0c90d2cfcf0f1e6be01d6b23d2c2", - "logs": [], - "blockNumber": 80919134, - "cumulativeGasUsed": "2955452", - "status": 1, - "byzantium": true - }, - "args": [ - "0xDDe9CE3736939d59A70c446c8A4AB6714CB4a41a", - "Api3ServerV1 admin", - "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/Api3ServerV1OevExtension.json b/deployments/lightlink-sepolia-testnet/Api3ServerV1OevExtension.json deleted file mode 100644 index 6707e4fe..00000000 --- a/deployments/lightlink-sepolia-testnet/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x3912fAfb8b6902D0f07Cf86ffDF44d631b1E922A", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x946fc3e18326cfca026ab28f3d8496e9b8bab531401e4b7d9d79ea4bec3d6e76", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "3262084", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xa8c5e979b623456cb787b94c56c28c7507b7f6747c1efd7cbf72e235bed65af8", - "transactionHash": "0x946fc3e18326cfca026ab28f3d8496e9b8bab531401e4b7d9d79ea4bec3d6e76", - "logs": [], - "blockNumber": 112458623, - "cumulativeGasUsed": "3262084", - "status": 1, - "byzantium": true - }, - "args": [ - "0xDDe9CE3736939d59A70c446c8A4AB6714CB4a41a", - "Api3ServerV1OevExtension admin", - "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", - "0x3d0Ca9e5490E36627beA9a8cb3cefa12D7cDc0af" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/GnosisSafeWithoutProxy.json b/deployments/lightlink-sepolia-testnet/GnosisSafeWithoutProxy.json deleted file mode 100644 index d2d47411..00000000 --- a/deployments/lightlink-sepolia-testnet/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0xed8998c34ac0c85d5a2893623c9fa33d500226bb98d4e25ba7ecaa88c22f508a", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0xBBCa0709c54CD137145AAb34c02754f582B94b08", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "3029150", - "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000100000000000000000000010000000000000000000000000100000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0x7388122701dfc00537fcf4906ff316e2808d9e0d87cf23c2db2cc7a49e23ec12", - "transactionHash": "0xed8998c34ac0c85d5a2893623c9fa33d500226bb98d4e25ba7ecaa88c22f508a", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 120490549, - "transactionHash": "0xed8998c34ac0c85d5a2893623c9fa33d500226bb98d4e25ba7ecaa88c22f508a", - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0x7388122701dfc00537fcf4906ff316e2808d9e0d87cf23c2db2cc7a49e23ec12" - } - ], - "blockNumber": 120490549, - "cumulativeGasUsed": "3029150", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 2 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/lightlink-sepolia-testnet/OwnableCallForwarder.json b/deployments/lightlink-sepolia-testnet/OwnableCallForwarder.json deleted file mode 100644 index cba5b418..00000000 --- a/deployments/lightlink-sepolia-testnet/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xda3f2ad26f956240a6be49616f4121b1f48f181cdc9ee97b6499bc3a792a539f", - "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", - "transactionIndex": 0, - "gasUsed": "409870", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000001000000000000000000000000000000000000020000000000004000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000010000000000000000000800000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x93a188033d52feb2e41281a1d7bb7daef4fae49ec16ca67b6e54ef3bcdac2476", - "transactionHash": "0xda3f2ad26f956240a6be49616f4121b1f48f181cdc9ee97b6499bc3a792a539f", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 80919112, - "transactionHash": "0xda3f2ad26f956240a6be49616f4121b1f48f181cdc9ee97b6499bc3a792a539f", - "address": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x93a188033d52feb2e41281a1d7bb7daef4fae49ec16ca67b6e54ef3bcdac2476" - }, - { - "transactionIndex": 0, - "blockNumber": 80919112, - "transactionHash": "0xda3f2ad26f956240a6be49616f4121b1f48f181cdc9ee97b6499bc3a792a539f", - "address": "0xC02Ea0f403d5f3D45a4F1d0d817e7A2601346c9E", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0x93a188033d52feb2e41281a1d7bb7daef4fae49ec16ca67b6e54ef3bcdac2476" - } - ], - "blockNumber": 80919112, - "cumulativeGasUsed": "409870", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/lightlink/.chainId b/deployments/lightlink/.chainId deleted file mode 100644 index d7e6ae9f..00000000 --- a/deployments/lightlink/.chainId +++ /dev/null @@ -1 +0,0 @@ -1890 \ No newline at end of file diff --git a/deployments/lightlink/AccessControlRegistry.json b/deployments/lightlink/AccessControlRegistry.json deleted file mode 100644 index a8099330..00000000 --- a/deployments/lightlink/AccessControlRegistry.json +++ /dev/null @@ -1,518 +0,0 @@ -{ - "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "rootRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "manager", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedManager", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "InitializedRole", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "initializeManager", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "adminRole", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "initializeRoleAndGrantToSender", - "outputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x439c287507b5ff42883af4842e6f7836617d42436bcd8991fdf564b8ac76db76", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "1062014", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xadc252d17c67271c79067e185c50a6c518f6c40192725c566a561f441e2594e6", - "transactionHash": "0x439c287507b5ff42883af4842e6f7836617d42436bcd8991fdf564b8ac76db76", - "logs": [], - "blockNumber": 78222603, - "cumulativeGasUsed": "1062014", - "status": 1, - "byzantium": true - }, - "args": [], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", - "devdoc": { - "details": "Each user is called a \"manager\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.", - "kind": "dev", - "methods": { - "getRoleAdmin(bytes32)": { - "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." - }, - "grantRole(bytes32,address)": { - "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event." - }, - "hasRole(bytes32,address)": { - "details": "Returns `true` if `account` has been granted `role`." - }, - "initializeManager(address)": { - "details": "Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.", - "params": { - "manager": "Manager address to be initialized" - } - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "details": "If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.", - "params": { - "adminRole": "Admin role to be assigned to the initialized role", - "description": "Human-readable description of the initialized role" - }, - "returns": { - "role": "Initialized role" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "renounceRole(bytes32,address)": { - "details": "Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.", - "params": { - "account": "Account to renounce the role", - "role": "Role to be renounced" - } - }, - "revokeRole(bytes32,address)": { - "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." - }, - "supportsInterface(bytes4)": { - "details": "See {IERC165-supportsInterface}." - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "title": "Contract that allows users to manage independent, tree-shaped access control tables", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "initializeManager(address)": { - "notice": "Initializes the manager by initializing its root role and granting it to them" - }, - "initializeRoleAndGrantToSender(bytes32,string)": { - "notice": "Initializes a role by setting its admin role and grants it to the sender" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "renounceRole(bytes32,address)": { - "notice": "Called by the account to renounce the role" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 12848, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "_roles", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bool": { - "encoding": "inplace", - "label": "bool", - "numberOfBytes": "1" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_bool)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => bool)", - "numberOfBytes": "32", - "value": "t_bool" - }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct AccessControl.RoleData)", - "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" - }, - "t_struct(RoleData)12843_storage": { - "encoding": "inplace", - "label": "struct AccessControl.RoleData", - "members": [ - { - "astId": 12840, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "members", - "offset": 0, - "slot": "0", - "type": "t_mapping(t_address,t_bool)" - }, - { - "astId": 12842, - "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", - "label": "adminRole", - "offset": 0, - "slot": "1", - "type": "t_bytes32" - } - ], - "numberOfBytes": "64" - } - } - } -} diff --git a/deployments/lightlink/AirseekerRegistry.json b/deployments/lightlink/AirseekerRegistry.json deleted file mode 100644 index e3b98bdb..00000000 --- a/deployments/lightlink/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x2a6cf1c75c479d59ceb1f9bc46a87aafc318ed97adb827c8e5a46a75a3e68642", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "2414949", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x675382590995fe76459c1de8e4d74a3a84de218ad0c2045ac23decb797661694", - "transactionHash": "0x2a6cf1c75c479d59ceb1f9bc46a87aafc318ed97adb827c8e5a46a75a3e68642", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 109745806, - "transactionHash": "0x2a6cf1c75c479d59ceb1f9bc46a87aafc318ed97adb827c8e5a46a75a3e68642", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x675382590995fe76459c1de8e4d74a3a84de218ad0c2045ac23decb797661694" - } - ], - "blockNumber": 109745806, - "cumulativeGasUsed": "2414949", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/lightlink/Api3MarketV2.json b/deployments/lightlink/Api3MarketV2.json deleted file mode 100644 index 279aaa54..00000000 --- a/deployments/lightlink/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x89dac61339c3f512bd06fb0eacb83a298122569d6270dc07fcb9465d88d15fe0", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "5105201", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x417e9c0a7b3bdf5600f8e07f8069a3dd4b5a572e95ba6dc75a60be121f8a55b7", - "transactionHash": "0x89dac61339c3f512bd06fb0eacb83a298122569d6270dc07fcb9465d88d15fe0", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 109745798, - "transactionHash": "0x89dac61339c3f512bd06fb0eacb83a298122569d6270dc07fcb9465d88d15fe0", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x417e9c0a7b3bdf5600f8e07f8069a3dd4b5a572e95ba6dc75a60be121f8a55b7" - } - ], - "blockNumber": 109745798, - "cumulativeGasUsed": "5105201", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink/Api3ReaderProxyV1Factory.json b/deployments/lightlink/Api3ReaderProxyV1Factory.json deleted file mode 100644 index 43ace146..00000000 --- a/deployments/lightlink/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xa7e5751a80beb3aeb8653555135bd7a0ecf78f235330f4e049c17714e31b56c9", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "1923129", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x18634e2e4ac4fdd32c5a3cd49a4dab1e30b74eafaf3f2890e40ed8ab9e8c2bd5", - "transactionHash": "0xa7e5751a80beb3aeb8653555135bd7a0ecf78f235330f4e049c17714e31b56c9", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 109745783, - "transactionHash": "0xa7e5751a80beb3aeb8653555135bd7a0ecf78f235330f4e049c17714e31b56c9", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x18634e2e4ac4fdd32c5a3cd49a4dab1e30b74eafaf3f2890e40ed8ab9e8c2bd5" - } - ], - "blockNumber": 109745783, - "cumulativeGasUsed": "1923129", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/lightlink/Api3ServerV1.json b/deployments/lightlink/Api3ServerV1.json deleted file mode 100644 index 12890989..00000000 --- a/deployments/lightlink/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x01dac59779a96d1931a68dc48178d5cb5816a7924a32800738520058c824f47d", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "2961690", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x20b8cd72889d10c1364b79ec9708760a45342111eca968202c45a8e5c8674ad0", - "transactionHash": "0x01dac59779a96d1931a68dc48178d5cb5816a7924a32800738520058c824f47d", - "logs": [], - "blockNumber": 78222612, - "cumulativeGasUsed": "2961690", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink/Api3ServerV1OevExtension.json b/deployments/lightlink/Api3ServerV1OevExtension.json deleted file mode 100644 index 2982b364..00000000 --- a/deployments/lightlink/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0xf090517c1441bd226568c2014a0ba41720568c706563f60e2512ad0858ff4a45", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "3262084", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xad9fa6bf41030e92971e7085fc27d94fab0211b2d4488705c0700c110210cbfc", - "transactionHash": "0xf090517c1441bd226568c2014a0ba41720568c706563f60e2512ad0858ff4a45", - "logs": [], - "blockNumber": 109745774, - "cumulativeGasUsed": "3262084", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/lightlink/GnosisSafeWithoutProxy.json b/deployments/lightlink/GnosisSafeWithoutProxy.json deleted file mode 100644 index 4e8c134e..00000000 --- a/deployments/lightlink/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x7e579c05d60e5d1630c09f400fa105c5ba89a65dc67731eeb41c337c8a5f1321", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "3029150", - "logsBloom": "0x000000004000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0x1966d896ba305597a5559c62a686c9ceb9ada4624663085ee6ca10deb2cfc40a", - "transactionHash": "0x7e579c05d60e5d1630c09f400fa105c5ba89a65dc67731eeb41c337c8a5f1321", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 121848386, - "transactionHash": "0x7e579c05d60e5d1630c09f400fa105c5ba89a65dc67731eeb41c337c8a5f1321", - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0x1966d896ba305597a5559c62a686c9ceb9ada4624663085ee6ca10deb2cfc40a" - } - ], - "blockNumber": 121848386, - "cumulativeGasUsed": "3029150", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 4 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/lightlink/OwnableCallForwarder.json b/deployments/lightlink/OwnableCallForwarder.json deleted file mode 100644 index 93082f2c..00000000 --- a/deployments/lightlink/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x094dc74d885090bd1291cb1d49c1cb423ba42be18a77721a2a8511e52845d4ab", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x0000000000000000000000000000000000000000", - "transactionIndex": 0, - "gasUsed": "410830", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0x9fb6d82cb91ec7116c156569b92978c9f145fce1f8f613fd8c4593fcce773724", - "transactionHash": "0x094dc74d885090bd1291cb1d49c1cb423ba42be18a77721a2a8511e52845d4ab", - "logs": [ - { - "transactionIndex": 0, - "blockNumber": 78222586, - "transactionHash": "0x094dc74d885090bd1291cb1d49c1cb423ba42be18a77721a2a8511e52845d4ab", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x9fb6d82cb91ec7116c156569b92978c9f145fce1f8f613fd8c4593fcce773724" - }, - { - "transactionIndex": 0, - "blockNumber": 78222586, - "transactionHash": "0x094dc74d885090bd1291cb1d49c1cb423ba42be18a77721a2a8511e52845d4ab", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0x9fb6d82cb91ec7116c156569b92978c9f145fce1f8f613fd8c4593fcce773724" - } - ], - "blockNumber": 78222586, - "cumulativeGasUsed": "410830", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/metal-sepolia-testnet/.chainId b/deployments/metal-sepolia-testnet/.chainId new file mode 100644 index 00000000..a2d1b86d --- /dev/null +++ b/deployments/metal-sepolia-testnet/.chainId @@ -0,0 +1 @@ +1740 \ No newline at end of file diff --git a/deployments/rari/AccessControlRegistry.json b/deployments/metal-sepolia-testnet/AccessControlRegistry.json similarity index 99% rename from deployments/rari/AccessControlRegistry.json rename to deployments/metal-sepolia-testnet/AccessControlRegistry.json index 1fc386fd..4097e56c 100644 --- a/deployments/rari/AccessControlRegistry.json +++ b/deployments/metal-sepolia-testnet/AccessControlRegistry.json @@ -342,25 +342,25 @@ "type": "function" } ], - "transactionHash": "0xb6169fb2493d8543e642572911553011008ed6756840ce5b15f263ba9bbef630", + "transactionHash": "0x6d4b035e27a284350835944a42877d15b7f921657ce2c426bd44ffbed41473bf", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "1061718", + "gasUsed": "1062014", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xbdc590cd2599af5b9270f352d06facff909158b306855555f7763f39150eb25a", - "transactionHash": "0xb6169fb2493d8543e642572911553011008ed6756840ce5b15f263ba9bbef630", + "blockHash": "0x6153f35be06c32a35ee4a121e2f804a734cfb6416d45b6f327cb3fea0d650340", + "transactionHash": "0x6d4b035e27a284350835944a42877d15b7f921657ce2c426bd44ffbed41473bf", "logs": [], - "blockNumber": 315646, - "cumulativeGasUsed": "1061718", + "blockNumber": 21060186, + "cumulativeGasUsed": "1108110", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", @@ -452,12 +452,12 @@ "storageLayout": { "storage": [ { - "astId": 12848, + "astId": 7036, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "_roles", "offset": 0, "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" + "type": "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)" } ], "types": { @@ -483,19 +483,19 @@ "numberOfBytes": "32", "value": "t_bool" }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { + "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct AccessControl.RoleData)", "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" + "value": "t_struct(RoleData)7031_storage" }, - "t_struct(RoleData)12843_storage": { + "t_struct(RoleData)7031_storage": { "encoding": "inplace", "label": "struct AccessControl.RoleData", "members": [ { - "astId": 12840, + "astId": 7028, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "members", "offset": 0, @@ -503,7 +503,7 @@ "type": "t_mapping(t_address,t_bool)" }, { - "astId": 12842, + "astId": 7030, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "adminRole", "offset": 0, diff --git a/deployments/kroma/AirseekerRegistry.json b/deployments/metal-sepolia-testnet/AirseekerRegistry.json similarity index 98% rename from deployments/kroma/AirseekerRegistry.json rename to deployments/metal-sepolia-testnet/AirseekerRegistry.json index 80ff937c..80becf3d 100644 --- a/deployments/kroma/AirseekerRegistry.json +++ b/deployments/metal-sepolia-testnet/AirseekerRegistry.json @@ -1,5 +1,5 @@ { - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "address": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "abi": [ { "inputs": [ @@ -723,40 +723,40 @@ "type": "function" } ], - "transactionHash": "0xe1b2a0c6e45b64b83899c7ccf7cbd468f2e5b26f71da10ad0f990db4c5cf9aab", + "transactionHash": "0x17c06eff822aaf54dc800da29e728eb0b1a63d9d42397e5bad8b8c1a1caa976e", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "2414949", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x4e4991e9774a5fabab4783eba611513aa490b202bcee8f154a9389cda16e4b8b", - "transactionHash": "0xe1b2a0c6e45b64b83899c7ccf7cbd468f2e5b26f71da10ad0f990db4c5cf9aab", + "logsBloom": "0x00000000000000000000000000000000000000000000020000800000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000001000000000000800000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x030c415af4f7df8648a8e4778fe8948a050ee1cb852430660e95c382c04b58b8", + "transactionHash": "0x17c06eff822aaf54dc800da29e728eb0b1a63d9d42397e5bad8b8c1a1caa976e", "logs": [ { "transactionIndex": 1, - "blockNumber": 18080801, - "transactionHash": "0xe1b2a0c6e45b64b83899c7ccf7cbd468f2e5b26f71da10ad0f990db4c5cf9aab", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", + "blockNumber": 21060207, + "transactionHash": "0x17c06eff822aaf54dc800da29e728eb0b1a63d9d42397e5bad8b8c1a1caa976e", + "address": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" + "0x0000000000000000000000006ba5ac44eebdb45d9e92be870558b2517194de7e" ], "data": "0x", "logIndex": 0, - "blockHash": "0x4e4991e9774a5fabab4783eba611513aa490b202bcee8f154a9389cda16e4b8b" + "blockHash": "0x030c415af4f7df8648a8e4778fe8948a050ee1cb852430660e95c382c04b58b8" } ], - "blockNumber": 18080801, - "cumulativeGasUsed": "2461133", + "blockNumber": 21060207, + "cumulativeGasUsed": "2461045", "status": 1, "byzantium": true }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], + "args": ["0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", @@ -1057,7 +1057,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_owner", "offset": 0, @@ -1086,7 +1086,7 @@ "label": "activeDataFeedIds", "offset": 0, "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 915, @@ -1094,7 +1094,7 @@ "label": "activeDapiNames", "offset": 0, "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 919, @@ -1176,27 +1176,27 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(Bytes32Set)19019_storage": { + "t_struct(Bytes32Set)19194_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Bytes32Set", "members": [ { - "astId": 19018, + "astId": 19193, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_inner", "offset": 0, "slot": "0", - "type": "t_struct(Set)18825_storage" + "type": "t_struct(Set)19000_storage" } ], "numberOfBytes": "64" }, - "t_struct(Set)18825_storage": { + "t_struct(Set)19000_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Set", "members": [ { - "astId": 18820, + "astId": 18995, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_values", "offset": 0, @@ -1204,7 +1204,7 @@ "type": "t_array(t_bytes32)dyn_storage" }, { - "astId": 18824, + "astId": 18999, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_positions", "offset": 0, diff --git a/deployments/rari-arbitrum-sepolia-testnet/Api3MarketV2.json b/deployments/metal-sepolia-testnet/Api3MarketV2.json similarity index 99% rename from deployments/rari-arbitrum-sepolia-testnet/Api3MarketV2.json rename to deployments/metal-sepolia-testnet/Api3MarketV2.json index 8312d825..6b50fd8a 100644 --- a/deployments/rari-arbitrum-sepolia-testnet/Api3MarketV2.json +++ b/deployments/metal-sepolia-testnet/Api3MarketV2.json @@ -1,5 +1,5 @@ { - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "address": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "abi": [ { "inputs": [ @@ -1271,40 +1271,40 @@ "type": "function" } ], - "transactionHash": "0x7dcdec323c77f590c5557d09d561a0e6137891c60d5fa885f29d0c449c16cdb2", + "transactionHash": "0x98d92ed6ad1482e0dedb57009dae9361288de58f7c316d896c5c5cd99f2f5dee", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "6258298", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc1712b839f9c21e87c9738d95a808a2e7803e3f1b0e73ec355c8005f3a992c41", - "transactionHash": "0x7dcdec323c77f590c5557d09d561a0e6137891c60d5fa885f29d0c449c16cdb2", + "gasUsed": "5105201", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000420000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000004000000000000000000000000000000000000", + "blockHash": "0xc666e3701eabdbb39deb18779f201816d7d1480e43be95107dfcbe705be2bc2d", + "transactionHash": "0x98d92ed6ad1482e0dedb57009dae9361288de58f7c316d896c5c5cd99f2f5dee", "logs": [ { "transactionIndex": 1, - "blockNumber": 643926, - "transactionHash": "0x7dcdec323c77f590c5557d09d561a0e6137891c60d5fa885f29d0c449c16cdb2", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "blockNumber": 21060203, + "transactionHash": "0x98d92ed6ad1482e0dedb57009dae9361288de58f7c316d896c5c5cd99f2f5dee", + "address": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + "0x00000000000000000000000073e5e41f981365cd92180b040e8532693d84b32d" ], "data": "0x", "logIndex": 0, - "blockHash": "0xc1712b839f9c21e87c9738d95a808a2e7803e3f1b0e73ec355c8005f3a992c41" + "blockHash": "0xc666e3701eabdbb39deb18779f201816d7d1480e43be95107dfcbe705be2bc2d" } ], - "blockNumber": 643926, - "cumulativeGasUsed": "6258298", + "blockNumber": 21060203, + "cumulativeGasUsed": "5151297", "status": 1, "byzantium": true }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], + "args": ["0x73E5e41f981365cD92180B040e8532693D84B32D", "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", 10], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", @@ -1781,7 +1781,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", "label": "_owner", "offset": 0, diff --git a/deployments/kroma-sepolia-testnet/Api3ReaderProxyV1Factory.json b/deployments/metal-sepolia-testnet/Api3ReaderProxyV1Factory.json similarity index 98% rename from deployments/kroma-sepolia-testnet/Api3ReaderProxyV1Factory.json rename to deployments/metal-sepolia-testnet/Api3ReaderProxyV1Factory.json index f8c09ac9..36ddbad6 100644 --- a/deployments/kroma-sepolia-testnet/Api3ReaderProxyV1Factory.json +++ b/deployments/metal-sepolia-testnet/Api3ReaderProxyV1Factory.json @@ -1,5 +1,5 @@ { - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "address": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "abi": [ { "inputs": [ @@ -194,40 +194,40 @@ "type": "function" } ], - "transactionHash": "0xc2ae9966a525edb18b933f629628d4968e3f12c682ce8d73cad12b16034364ed", + "transactionHash": "0x6234d00a8060843680c5953ca845c2a031c3bacc5872518fc3452522a59118b9", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "1923129", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xc16ceef6e73213afea4e3777bd9877f75ccffe6dca122128137ee21408d95413", - "transactionHash": "0xc2ae9966a525edb18b933f629628d4968e3f12c682ce8d73cad12b16034364ed", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000808000000000000000000000000000000400000010000000000000000000000000000010000000000000000000000000000000040000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x0e2106fc7db37c5e863a7b5477596f446e78910fbebcbded017374fd2ff9c39e", + "transactionHash": "0x6234d00a8060843680c5953ca845c2a031c3bacc5872518fc3452522a59118b9", "logs": [ { "transactionIndex": 1, - "blockNumber": 20666449, - "transactionHash": "0xc2ae9966a525edb18b933f629628d4968e3f12c682ce8d73cad12b16034364ed", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "blockNumber": 21060197, + "transactionHash": "0x6234d00a8060843680c5953ca845c2a031c3bacc5872518fc3452522a59118b9", + "address": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + "0x00000000000000000000000073e5e41f981365cd92180b040e8532693d84b32d" ], "data": "0x", "logIndex": 0, - "blockHash": "0xc16ceef6e73213afea4e3777bd9877f75ccffe6dca122128137ee21408d95413" + "blockHash": "0x0e2106fc7db37c5e863a7b5477596f446e78910fbebcbded017374fd2ff9c39e" } ], - "blockNumber": 20666449, - "cumulativeGasUsed": "1969241", + "blockNumber": 21060197, + "cumulativeGasUsed": "1969213", "status": 1, "byzantium": true }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], + "args": ["0x73E5e41f981365cD92180B040e8532693D84B32D", "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", @@ -305,7 +305,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", "label": "_owner", "offset": 0, diff --git a/deployments/kroma/Api3ServerV1.json b/deployments/metal-sepolia-testnet/Api3ServerV1.json similarity index 99% rename from deployments/kroma/Api3ServerV1.json rename to deployments/metal-sepolia-testnet/Api3ServerV1.json index 4ccf8d76..15ca18d1 100644 --- a/deployments/kroma/Api3ServerV1.json +++ b/deployments/metal-sepolia-testnet/Api3ServerV1.json @@ -1,5 +1,5 @@ { - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", + "address": "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d", "abi": [ { "inputs": [ @@ -741,29 +741,29 @@ "type": "function" } ], - "transactionHash": "0xe63b4526769d7e9f714d03db09e1d4c58e538ddab523cda0583526ea7ea87cab", + "transactionHash": "0x365dcec12fbbbd7905ea43ff1ee0280702f3b1a91554aaf0557d0ba0e0afb353", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "2961690", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x92dd5e77b53f0e66650197bde404007ff1382645e625a15c96984ff0de8a3931", - "transactionHash": "0xe63b4526769d7e9f714d03db09e1d4c58e538ddab523cda0583526ea7ea87cab", + "blockHash": "0x1b64981bf084702003aec69168f0c48900558b3b936df0e71c6fbbbad0fc28d2", + "transactionHash": "0x365dcec12fbbbd7905ea43ff1ee0280702f3b1a91554aaf0557d0ba0e0afb353", "logs": [], - "blockNumber": 10426571, - "cumulativeGasUsed": "3007886", + "blockNumber": 21060190, + "cumulativeGasUsed": "3007786", "status": 1, "byzantium": true }, "args": [ "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" + "0x73E5e41f981365cD92180B040e8532693D84B32D" ], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", @@ -1018,23 +1018,23 @@ "type": "t_string_storage" }, { - "astId": 4803, + "astId": 1797, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "_dataFeeds", "offset": 0, "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" + "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" }, { - "astId": 6904, + "astId": 3898, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "_oevProxyToIdToDataFeed", "offset": 0, "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" + "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)1791_storage))" }, { - "astId": 6910, + "astId": 3904, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "oevProxyToBalance", "offset": 0, @@ -1042,7 +1042,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 4625, + "astId": 1619, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "dapiNameHashToDataFeedId", "offset": 0, @@ -1066,12 +1066,12 @@ "label": "int224", "numberOfBytes": "28" }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { + "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)1791_storage))": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" + "value": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" }, "t_mapping(t_address,t_uint256)": { "encoding": "mapping", @@ -1087,24 +1087,24 @@ "numberOfBytes": "32", "value": "t_bytes32" }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { + "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" + "value": "t_struct(DataFeed)1791_storage" }, "t_string_storage": { "encoding": "bytes", "label": "string", "numberOfBytes": "32" }, - "t_struct(DataFeed)4797_storage": { + "t_struct(DataFeed)1791_storage": { "encoding": "inplace", "label": "struct DataFeedServer.DataFeed", "members": [ { - "astId": 4794, + "astId": 1788, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "value", "offset": 0, @@ -1112,7 +1112,7 @@ "type": "t_int224" }, { - "astId": 4796, + "astId": 1790, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "timestamp", "offset": 28, diff --git a/deployments/kroma-sepolia-testnet/Api3ServerV1OevExtension.json b/deployments/metal-sepolia-testnet/Api3ServerV1OevExtension.json similarity index 99% rename from deployments/kroma-sepolia-testnet/Api3ServerV1OevExtension.json rename to deployments/metal-sepolia-testnet/Api3ServerV1OevExtension.json index 4eef12ca..f087937d 100644 --- a/deployments/kroma-sepolia-testnet/Api3ServerV1OevExtension.json +++ b/deployments/metal-sepolia-testnet/Api3ServerV1OevExtension.json @@ -1,5 +1,5 @@ { - "address": "0x2E787629c3B7545271240A87197108823ce8303b", + "address": "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8", "abi": [ { "inputs": [ @@ -646,27 +646,27 @@ "type": "receive" } ], - "transactionHash": "0x14660d11c642250f77e7e2b322c518ac1c3076f433d7fbe9fe58873a25c2c3e8", + "transactionHash": "0x286efa0022ac819cacf9904c3ed439df29ccd205748aeb7c475a3ebbef394186", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "3262084", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x2bf8c96e28cac7f30b891abbd6c38bbb159a896f0319b50dfa9a48006cf26712", - "transactionHash": "0x14660d11c642250f77e7e2b322c518ac1c3076f433d7fbe9fe58873a25c2c3e8", + "blockHash": "0x35482d873f6ef05e7cf18654620e36592dacf33230a983a173e823ef4ef7203e", + "transactionHash": "0x286efa0022ac819cacf9904c3ed439df29ccd205748aeb7c475a3ebbef394186", "logs": [], - "blockNumber": 20666445, - "cumulativeGasUsed": "3308208", + "blockNumber": 21060193, + "cumulativeGasUsed": "3308180", "status": 1, "byzantium": true }, "args": [ "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" + "0x73E5e41f981365cD92180B040e8532693D84B32D", + "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d" ], "numDeployments": 1, "solcInputHash": "69404b24fc871d37136875d5dfb0242e", diff --git a/deployments/kroma-sepolia-testnet/GnosisSafeWithoutProxy.json b/deployments/metal-sepolia-testnet/GnosisSafeWithoutProxy.json similarity index 99% rename from deployments/kroma-sepolia-testnet/GnosisSafeWithoutProxy.json rename to deployments/metal-sepolia-testnet/GnosisSafeWithoutProxy.json index 6992554f..386dcb26 100644 --- a/deployments/kroma-sepolia-testnet/GnosisSafeWithoutProxy.json +++ b/deployments/metal-sepolia-testnet/GnosisSafeWithoutProxy.json @@ -1044,21 +1044,21 @@ "type": "receive" } ], - "transactionHash": "0xef768ab9c244887dbd3a0bca93abb5a018aef5bda5ae45a535aefbfc2bc9524f", + "transactionHash": "0xca4311ea444c192b44374f36819a7b3204fea5c5e71b97f8690a6442bdd024de", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0xBBCa0709c54CD137145AAb34c02754f582B94b08", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "3029150", "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000100000000000000000000010000000000000000000000000100000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0xc188644f440e74bef0bf62f1550cea3ac4d20bc618c41e6de06e1744c1de6cb3", - "transactionHash": "0xef768ab9c244887dbd3a0bca93abb5a018aef5bda5ae45a535aefbfc2bc9524f", + "blockHash": "0xe4f810a26fbf23e056ccc32776069da4994c7f949b1f6f5f759531ea55a2f05b", + "transactionHash": "0xca4311ea444c192b44374f36819a7b3204fea5c5e71b97f8690a6442bdd024de", "logs": [ { "transactionIndex": 1, - "blockNumber": 22689225, - "transactionHash": "0xef768ab9c244887dbd3a0bca93abb5a018aef5bda5ae45a535aefbfc2bc9524f", + "blockNumber": 21060178, + "transactionHash": "0xca4311ea444c192b44374f36819a7b3204fea5c5e71b97f8690a6442bdd024de", "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", "topics": [ "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", @@ -1066,11 +1066,11 @@ ], "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", "logIndex": 0, - "blockHash": "0xc188644f440e74bef0bf62f1550cea3ac4d20bc618c41e6de06e1744c1de6cb3" + "blockHash": "0xe4f810a26fbf23e056ccc32776069da4994c7f949b1f6f5f759531ea55a2f05b" } ], - "blockNumber": 22689225, - "cumulativeGasUsed": "3075286", + "blockNumber": 21060178, + "cumulativeGasUsed": "3075246", "status": 1, "byzantium": true }, diff --git a/deployments/rari-arbitrum-sepolia-testnet/OwnableCallForwarder.json b/deployments/metal-sepolia-testnet/OwnableCallForwarder.json similarity index 94% rename from deployments/rari-arbitrum-sepolia-testnet/OwnableCallForwarder.json rename to deployments/metal-sepolia-testnet/OwnableCallForwarder.json index 6213e155..d23497a0 100644 --- a/deployments/rari-arbitrum-sepolia-testnet/OwnableCallForwarder.json +++ b/deployments/metal-sepolia-testnet/OwnableCallForwarder.json @@ -1,5 +1,5 @@ { - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "abi": [ { "inputs": [ @@ -89,22 +89,22 @@ "type": "function" } ], - "transactionHash": "0xbb025af247aa805bc4a875f94ea35027a50639bf7f28438cdfbb47101674c937", + "transactionHash": "0x00de161fd05c65e22a97bf32ae7f681dd39cac98b31c7b405f2f47757efd665c", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "1871898", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0xbf06945c429d13fc7d2aa649681c6edfa4d5c5f2205b8480c44b368f3ca2faa6", - "transactionHash": "0xbb025af247aa805bc4a875f94ea35027a50639bf7f28438cdfbb47101674c937", + "gasUsed": "410818", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000408000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000008000000000000000000001000000000000000000000020000000001000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000080000000000000000000010000000000", + "blockHash": "0x689d808306866800fb21effa4a3c66e76139c0d9b01529082b2a781558018b65", + "transactionHash": "0x00de161fd05c65e22a97bf32ae7f681dd39cac98b31c7b405f2f47757efd665c", "logs": [ { "transactionIndex": 1, - "blockNumber": 251943, - "transactionHash": "0xbb025af247aa805bc4a875f94ea35027a50639bf7f28438cdfbb47101674c937", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "blockNumber": 21060182, + "transactionHash": "0x00de161fd05c65e22a97bf32ae7f681dd39cac98b31c7b405f2f47757efd665c", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", @@ -112,31 +112,31 @@ ], "data": "0x", "logIndex": 0, - "blockHash": "0xbf06945c429d13fc7d2aa649681c6edfa4d5c5f2205b8480c44b368f3ca2faa6" + "blockHash": "0x689d808306866800fb21effa4a3c66e76139c0d9b01529082b2a781558018b65" }, { "transactionIndex": 1, - "blockNumber": 251943, - "transactionHash": "0xbb025af247aa805bc4a875f94ea35027a50639bf7f28438cdfbb47101674c937", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "blockNumber": 21060182, + "transactionHash": "0x00de161fd05c65e22a97bf32ae7f681dd39cac98b31c7b405f2f47757efd665c", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" + "0x000000000000000000000000795e7417b5e9c70037654480f0371e202b48bc77" ], "data": "0x", "logIndex": 1, - "blockHash": "0xbf06945c429d13fc7d2aa649681c6edfa4d5c5f2205b8480c44b368f3ca2faa6" + "blockHash": "0x689d808306866800fb21effa4a3c66e76139c0d9b01529082b2a781558018b65" } ], - "blockNumber": 251943, - "cumulativeGasUsed": "1871898", + "blockNumber": 21060182, + "cumulativeGasUsed": "465302", "status": 1, "byzantium": true }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], + "args": ["0x795E7417b5e9c70037654480F0371e202b48bC77"], "numDeployments": 1, - "solcInputHash": "244b8e05fc2166c1983c7be433cf9254", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", @@ -183,7 +183,7 @@ "storageLayout": { "storage": [ { - "astId": 11999, + "astId": 7408, "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", "label": "_owner", "offset": 0, diff --git a/deployments/rari-arbitrum-sepolia-testnet/.chainId b/deployments/rari-arbitrum-sepolia-testnet/.chainId deleted file mode 100644 index 82e2b8a7..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/.chainId +++ /dev/null @@ -1 +0,0 @@ -1918988905 \ No newline at end of file diff --git a/deployments/rari-arbitrum-sepolia-testnet/AirseekerRegistry.json b/deployments/rari-arbitrum-sepolia-testnet/AirseekerRegistry.json deleted file mode 100644 index b6f47293..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xd3353c6e348654ae0ce180aa45ab65377c51b7b8e6b5087c9d3ec399f1b41726", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "3014029", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xf2348169656579b3ed95ad67fcd0d5576652025f8e877df8376ce3e6dd7a22e9", - "transactionHash": "0xd3353c6e348654ae0ce180aa45ab65377c51b7b8e6b5087c9d3ec399f1b41726", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 643927, - "transactionHash": "0xd3353c6e348654ae0ce180aa45ab65377c51b7b8e6b5087c9d3ec399f1b41726", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xf2348169656579b3ed95ad67fcd0d5576652025f8e877df8376ce3e6dd7a22e9" - } - ], - "blockNumber": 643927, - "cumulativeGasUsed": "3014029", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/rari-arbitrum-sepolia-testnet/Api3ReaderProxyV1Factory.json b/deployments/rari-arbitrum-sepolia-testnet/Api3ReaderProxyV1Factory.json deleted file mode 100644 index beacb515..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xf6038e465275ea8b668a1fb46b3cbdbae83c53c8b75808776e7441b563994651", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2389940", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xa477801fadcb1697d07df8baf370c50d18d3b5f8263821401104eac77914ac24", - "transactionHash": "0xf6038e465275ea8b668a1fb46b3cbdbae83c53c8b75808776e7441b563994651", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 643924, - "transactionHash": "0xf6038e465275ea8b668a1fb46b3cbdbae83c53c8b75808776e7441b563994651", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xa477801fadcb1697d07df8baf370c50d18d3b5f8263821401104eac77914ac24" - } - ], - "blockNumber": 643924, - "cumulativeGasUsed": "2389940", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1.json b/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1.json deleted file mode 100644 index 470b2ac1..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x76a945e7340e64445c307651498818337b79783210d847203601ebcb2718b34b", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "10986122", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x81b34a52e70a9f0bdb3864188e031013a792f4b13aa165776e61256dcc1dda11", - "transactionHash": "0x76a945e7340e64445c307651498818337b79783210d847203601ebcb2718b34b", - "logs": [], - "blockNumber": 251946, - "cumulativeGasUsed": "10986122", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "244b8e05fc2166c1983c7be433cf9254", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1OevExtension.json b/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1OevExtension.json deleted file mode 100644 index 80f4eb7e..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x3a3c3c155c5cb4f309a5a711beeaa13b3d5f7ba5ac04f154affdb73298cf80ca", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "4107472", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xf250c414eb0e3d4bbd7ea387ca81894ceaac772b6e0e4d28714fa3cc1cc242b5", - "transactionHash": "0x3a3c3c155c5cb4f309a5a711beeaa13b3d5f7ba5ac04f154affdb73298cf80ca", - "logs": [], - "blockNumber": 643923, - "cumulativeGasUsed": "4107472", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/rari-arbitrum-sepolia-testnet/GnosisSafeWithoutProxy.json b/deployments/rari-arbitrum-sepolia-testnet/GnosisSafeWithoutProxy.json deleted file mode 100644 index a0c35ecd..00000000 --- a/deployments/rari-arbitrum-sepolia-testnet/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x20be1caa9724572fe78e59d8ae02ef20144d8578c6f8c8ffdfae47213732dbbd", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0xBBCa0709c54CD137145AAb34c02754f582B94b08", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "4767523", - "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000100000000000000000000010000000000000000000000000100000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0x2f154e8439e0c780fdfdb9d518ce03fb89e21aed3f5962570bbfd24d0bb1e03e", - "transactionHash": "0x20be1caa9724572fe78e59d8ae02ef20144d8578c6f8c8ffdfae47213732dbbd", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 697003, - "transactionHash": "0x20be1caa9724572fe78e59d8ae02ef20144d8578c6f8c8ffdfae47213732dbbd", - "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0x2f154e8439e0c780fdfdb9d518ce03fb89e21aed3f5962570bbfd24d0bb1e03e" - } - ], - "blockNumber": 697003, - "cumulativeGasUsed": "4767523", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 2 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/rari/.chainId b/deployments/rari/.chainId deleted file mode 100644 index 1312b1c9..00000000 --- a/deployments/rari/.chainId +++ /dev/null @@ -1 +0,0 @@ -1380012617 \ No newline at end of file diff --git a/deployments/rari/AirseekerRegistry.json b/deployments/rari/AirseekerRegistry.json deleted file mode 100644 index 545d2a08..00000000 --- a/deployments/rari/AirseekerRegistry.json +++ /dev/null @@ -1,1224 +0,0 @@ -{ - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "ActivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "ActivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "DeactivatedDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "DeactivatedDataFeedId", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "RegisteredDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDapiNameUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "UpdatedDataFeedIdUpdateParameters", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "UpdatedSignedApiUrl", - "type": "event" - }, - { - "inputs": [], - "name": "MAXIMUM_BEACON_COUNT_IN_SET", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_SIGNED_API_URL_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDapiNameCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - } - ], - "name": "activeDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "string[]", - "name": "signedApiUrls", - "type": "string[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "activeDataFeedIdCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "airnodeToSignedApiUrl", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dataFeedIdToDetails", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeedIsRegistered", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "setDapiNameToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDapiNameUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeActivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDataFeedIdToBeDeactivated", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "name": "setDataFeedIdUpdateParameters", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - } - ], - "name": "setSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xd4c7579459155498baf233f161fd480c3e375a6ca3ef931af8f6c536c9acc347", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2418722", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000010000000000000000000000000000000000000000008000000000000000000000000000000000000008800000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000800000000000000400000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x4bad44d89553b46bcd81bcf6b15a67627d1fb516cc0ca2efe7cb9184f81b8e6a", - "transactionHash": "0xd4c7579459155498baf233f161fd480c3e375a6ca3ef931af8f6c536c9acc347", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 656985, - "transactionHash": "0xd4c7579459155498baf233f161fd480c3e375a6ca3ef931af8f6c536c9acc347", - "address": "0x7B42df2563E128Ae3F68e2CFB1904808F61C8F12", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003f5c77bb36a16118ccc9ca83ddee8a01b6c01811" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x4bad44d89553b46bcd81bcf6b15a67627d1fb516cc0ca2efe7cb9184f81b8e6a" - } - ], - "blockNumber": 656985, - "cumulativeGasUsed": "2418722", - "status": 1, - "byzantium": true - }, - "args": ["0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", "0x709944a48cAf83535e43471680fDA4905FB3920a"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "activeDapiNameCount()": { - "returns": { - "_0": "Active dAPI name count" - } - }, - "activeDataFeed(uint256)": { - "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", - "params": { - "index": "Index" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", - "dataFeedDetails": "Data feed details", - "dataFeedId": "Data feed ID", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1", - "signedApiUrls": "Signed API URLs of the Beacon Airnodes", - "updateParameters": "Update parameters" - } - }, - "activeDataFeedCount()": { - "returns": { - "_0": "Active data feed count" - } - }, - "activeDataFeedIdCount()": { - "returns": { - "_0": "Active data feed ID count" - } - }, - "constructor": { - "params": { - "api3ServerV1_": "Api3ServerV1 contract address", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToUpdateParameters(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "dataFeedIsRegistered(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "_0": "If the data feed with ID is registered" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "setDapiNameToBeActivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameToBeDeactivated(bytes32)": { - "params": { - "dapiName": "dAPI name" - } - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "params": { - "dapiName": "dAPI name", - "updateParameters": "Update parameters" - } - }, - "setDataFeedIdToBeActivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - } - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "params": { - "dataFeedId": "Data feed ID", - "updateParameters": "Update parameters" - } - }, - "setSignedApiUrl(address,string)": { - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - } - }, - "stateVariables": { - "MAXIMUM_BEACON_COUNT_IN_SET": { - "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." - }, - "airnodeToSignedApiUrl": { - "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" - } - }, - "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "MAXIMUM_BEACON_COUNT_IN_SET()": { - "notice": "Maximum number of Beacons in a Beacon set that can be registered" - }, - "MAXIMUM_SIGNED_API_URL_LENGTH()": { - "notice": "Maximum signed API URL length" - }, - "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { - "notice": "Maximum encoded update parameters length" - }, - "activeDapiNameCount()": { - "notice": "Returns the number of active data feeds identified by a dAPI name" - }, - "activeDataFeed(uint256)": { - "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." - }, - "activeDataFeedCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" - }, - "activeDataFeedIdCount()": { - "notice": "Returns the number of active data feeds identified by a data feed ID" - }, - "airnodeToSignedApiUrl(address)": { - "notice": "Airnode address to signed API URL" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToUpdateParameters(bytes32)": { - "notice": "dAPI name to update parameters" - }, - "dataFeedIdToDetails(bytes32)": { - "notice": "Data feed ID to encoded details" - }, - "dataFeedIdToUpdateParameters(bytes32)": { - "notice": "Data feed ID to update parameters" - }, - "dataFeedIsRegistered(bytes32)": { - "notice": "Returns if the data feed with ID is registered" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setDapiNameToBeActivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be activated" - }, - "setDapiNameToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the dAPI name to be deactivated" - }, - "setDapiNameUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setDataFeedIdToBeActivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be activated" - }, - "setDataFeedIdToBeDeactivated(bytes32)": { - "notice": "Called by the owner to set the data feed ID to be deactivated" - }, - "setDataFeedIdUpdateParameters(bytes32,bytes)": { - "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." - }, - "setSignedApiUrl(address,string)": { - "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - } - }, - "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 903, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "airnodeToSignedApiUrl", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_string_storage)" - }, - { - "astId": 909, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToDetails", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - }, - { - "astId": 912, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDataFeedIds", - "offset": 0, - "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 915, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "activeDapiNames", - "offset": 0, - "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" - }, - { - "astId": 919, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dataFeedIdToUpdateParametersHash", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 923, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "dapiNameToUpdateParametersHash", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 927, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "9", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_array(t_bytes32)dyn_storage": { - "base": "t_bytes32", - "encoding": "dynamic_array", - "label": "bytes32[]", - "numberOfBytes": "32" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_string_storage)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => string)", - "numberOfBytes": "32", - "value": "t_string_storage" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(Bytes32Set)19019_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Bytes32Set", - "members": [ - { - "astId": 19018, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_inner", - "offset": 0, - "slot": "0", - "type": "t_struct(Set)18825_storage" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Set)18825_storage": { - "encoding": "inplace", - "label": "struct EnumerableSet.Set", - "members": [ - { - "astId": 18820, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_values", - "offset": 0, - "slot": "0", - "type": "t_array(t_bytes32)dyn_storage" - }, - { - "astId": 18824, - "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", - "label": "_positions", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_uint256)" - } - ], - "numberOfBytes": "64" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/rari/Api3MarketV2.json b/deployments/rari/Api3MarketV2.json deleted file mode 100644 index 56f57716..00000000 --- a/deployments/rari/Api3MarketV2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "owner_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ReaderProxyV1Factory_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "maximumSubscriptionQueueLength_", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "ECDSAInvalidSignature", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "ECDSAInvalidSignatureLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "s", - "type": "bytes32" - } - ], - "name": "ECDSAInvalidSignatureS", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint8", - "name": "bits", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeCastOverflowedUintDowncast", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paymentAmount", - "type": "uint256" - } - ], - "name": "BoughtSubscription", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "CanceledSubscriptions", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "RegisteredHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "airseekerRegistry", - "type": "address" - } - ], - "name": "SetAirseekerRegistry", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - } - ], - "name": "SetHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "SetSigners", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "UpdatedCurrentSubscriptionId", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DAPI_UPDATE_AGE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "airseekerRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ReaderProxyV1Factory", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "buySubscription", - "outputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "cancelSubscriptions", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "computeExpectedSponsorWalletBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", - "outputs": [ - { - "internalType": "uint256", - "name": "expectedSponsorWalletBalance", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameToCurrentSubscriptionId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "api3ReaderProxyV1", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "getDapiData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dapiValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dapiTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - }, - { - "internalType": "bytes[]", - "name": "updateParameters", - "type": "bytes[]" - }, - { - "internalType": "uint32[]", - "name": "endTimestamps", - "type": "uint32[]" - }, - { - "internalType": "uint224[]", - "name": "dailyPrices", - "type": "uint224[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "getDataFeedData", - "outputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - }, - { - "internalType": "int224", - "name": "dataFeedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "dataFeedTimestamp", - "type": "uint32" - }, - { - "internalType": "int224[]", - "name": "beaconValues", - "type": "int224[]" - }, - { - "internalType": "uint32[]", - "name": "beaconTimestamps", - "type": "uint32[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - } - ], - "name": "getHashValue", - "outputs": [ - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashTypeToSignersHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "hashes", - "outputs": [ - { - "internalType": "bytes32", - "name": "value", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maximumSubscriptionQueueLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "multicallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "multicallAndBuySubscription", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "dataFeedDetails", - "type": "bytes" - } - ], - "name": "registerDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "hashTimestamp", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signatures", - "type": "bytes[]" - } - ], - "name": "registerHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airseekerRegistry_", - "type": "address" - } - ], - "name": "setAirseekerRegistry", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "hashValue", - "type": "bytes32" - } - ], - "name": "setHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashType", - "type": "bytes32" - }, - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - } - ], - "name": "setSigners", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "signatureDelegationHashType", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "name": "subscriptionIdToUpdateParameters", - "outputs": [ - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "subscriptions", - "outputs": [ - { - "internalType": "bytes32", - "name": "updateParametersHash", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint224", - "name": "dailyPrice", - "type": "uint224" - }, - { - "internalType": "bytes32", - "name": "nextSubscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "tryMulticallData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address payable", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "updateParameters", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "price", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dapiManagementAndDapiPricingMerkleData", - "type": "bytes" - } - ], - "name": "tryMulticallAndBuySubscription", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "subscriptionId", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "updateCurrentSubscriptionId", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "sponsorWallet", - "type": "address" - }, - { - "internalType": "bytes", - "name": "dapiManagementMerkleData", - "type": "bytes" - } - ], - "name": "updateDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "string", - "name": "signedApiUrl", - "type": "string" - }, - { - "internalType": "bytes", - "name": "signedApiUrlMerkleData", - "type": "bytes" - } - ], - "name": "updateSignedApiUrl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x708544321cb2897f2918a3dd4948e47af866a7e8138cc9245034760b17204018", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "5112320", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x793cb7ac7923e35e2ae451a2b8d81bc6065165035af6b5a1025b4e9ed1a438c4", - "transactionHash": "0x708544321cb2897f2918a3dd4948e47af866a7e8138cc9245034760b17204018", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 656984, - "transactionHash": "0x708544321cb2897f2918a3dd4948e47af866a7e8138cc9245034760b17204018", - "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x793cb7ac7923e35e2ae451a2b8d81bc6065165035af6b5a1025b4e9ed1a438c4" - } - ], - "blockNumber": 656984, - "cumulativeGasUsed": "5112320", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", - "devdoc": { - "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", - "errors": { - "ECDSAInvalidSignature()": [ - { - "details": "The signature derives the `address(0)`." - } - ], - "ECDSAInvalidSignatureLength(uint256)": [ - { - "details": "The signature has an invalid length." - } - ], - "ECDSAInvalidSignatureS(bytes32)": [ - { - "details": "The signature has an S value that is in the upper half order." - } - ], - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ], - "SafeCastOverflowedUintDowncast(uint8,uint256)": [ - { - "details": "Value doesn't fit in an uint of `bits` size." - } - ] - }, - "kind": "dev", - "methods": { - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "subscriptionId": "Subscription ID" - } - }, - "cancelSubscriptions(bytes32)": { - "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", - "params": { - "dapiName": "dAPI name" - } - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", - "params": { - "dapiName": "dAPI name", - "duration": "Subscription duration", - "price": "Subscription price", - "updateParameters": "Update parameters" - }, - "returns": { - "expectedSponsorWalletBalance": "Expected sponsor wallet balance" - } - }, - "constructor": { - "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", - "params": { - "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", - "maximumSubscriptionQueueLength_": "Maximum subscription queue length", - "owner_": "Owner address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", - "params": { - "dapiName": "dAPI name", - "dappId": "dApp ID", - "metadata": "Metadata associated with the proxy" - }, - "returns": { - "api3ReaderProxyV1": "Api3ReaderProxyV1 address" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "getDapiData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dailyPrices": "Daily prices of the subscriptions in the queue", - "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", - "dapiValue": "dAPI value read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "endTimestamps": "End timestamps of the subscriptions in the queue", - "updateParameters": "Update parameters of the subscriptions in the queue" - } - }, - "getDataFeedData(bytes32)": { - "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", - "beaconValues": "Beacon values read from Api3ServerV1", - "dataFeedDetails": "Data feed details", - "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", - "dataFeedValue": "Data feed value read from Api3ServerV1" - } - }, - "getHashValue(bytes32)": { - "params": { - "hashType": "Hash type" - }, - "returns": { - "hashValue": "Hash value" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "multicallData": "Array of calldata of batched calls", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID" - } - }, - "owner()": { - "returns": { - "_0": "Owner address" - } - }, - "registerDataFeed(bytes)": { - "params": { - "dataFeedDetails": "Data feed details" - }, - "returns": { - "dataFeedId": "Data feed ID" - } - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "params": { - "hashTimestamp": "Hash timestamp", - "hashType": "Hash type", - "hashValue": "Hash value", - "signatures": "Signatures" - } - }, - "setAirseekerRegistry(address)": { - "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", - "params": { - "airseekerRegistry_": "AirseekerRegistry address" - } - }, - "setHash(bytes32,bytes32)": { - "params": { - "hashType": "Hash type", - "hashValue": "Hash value" - } - }, - "setSigners(bytes32,address[])": { - "params": { - "hashType": "Hash type", - "signers": "Signer addresses" - } - }, - "signatureDelegationHashType()": { - "returns": { - "_0": "Signature delegation hash type" - } - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "params": { - "subscriptionId": "Subscription ID" - }, - "returns": { - "updateParameters": "Update parameters" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", - "params": { - "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "duration": "Subscription duration", - "price": "Subscription price", - "sponsorWallet": "Sponsor wallet address", - "tryMulticallData": "Array of calldata of batched calls", - "updateParameters": "Update parameters" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "subscriptionId": "Subscription ID", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Updated Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateCurrentSubscriptionId(bytes32)": { - "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", - "params": { - "dapiName": "dAPI name" - } - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", - "params": { - "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", - "dapiName": "dAPI name", - "dataFeedId": "Data feed ID", - "sponsorWallet": "Sponsor wallet address" - } - }, - "updateSignedApiUrl(address,string,bytes)": { - "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", - "params": { - "airnode": "Airnode address", - "signedApiUrl": "Signed API URL", - "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" - } - } - }, - "stateVariables": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { - "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" - }, - "maximumSubscriptionQueueLength": { - "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." - } - }, - "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI management Merkle root hash type" - }, - "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { - "notice": "dAPI pricing Merkle root hash type" - }, - "MAXIMUM_DAPI_UPDATE_AGE()": { - "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." - }, - "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { - "notice": "Signed API URL Merkle root hash type" - }, - "airseekerRegistry()": { - "notice": "AirseekerRegistry contract address" - }, - "api3ReaderProxyV1Factory()": { - "notice": "Api3ReaderProxyV1Factory contract address" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." - }, - "cancelSubscriptions(bytes32)": { - "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" - }, - "computeExpectedSponsorWalletBalance(bytes32)": { - "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" - }, - "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { - "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameToCurrentSubscriptionId(bytes32)": { - "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "getDapiData(bytes32)": { - "notice": "Gets all data about the dAPI that is available" - }, - "getDataFeedData(bytes32)": { - "notice": "Gets all data about the data feed that is available" - }, - "getHashValue(bytes32)": { - "notice": "Returns get the hash value for the type" - }, - "hashTypeToSignersHash(bytes32)": { - "notice": "Hash type to the hash of the array of signer addresses" - }, - "hashes(bytes32)": { - "notice": "Hash type to the last registered value and timestamp" - }, - "maximumSubscriptionQueueLength()": { - "notice": "Maximum subscription queue length for a dAPI" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" - }, - "owner()": { - "notice": "Returns the owner address" - }, - "registerDataFeed(bytes)": { - "notice": "Calls AirseekerRegistry to register the data feed" - }, - "registerHash(bytes32,bytes32,uint256,bytes[])": { - "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." - }, - "renounceOwnership()": { - "notice": "Overriden to be disabled" - }, - "setAirseekerRegistry(address)": { - "notice": "Called once by the owner to set the AirseekerRegistry address" - }, - "setHash(bytes32,bytes32)": { - "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." - }, - "setSigners(bytes32,address[])": { - "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." - }, - "signatureDelegationHashType()": { - "notice": "Returns the signature delegation hash type used in delegation signatures" - }, - "subscriptionIdToUpdateParameters(bytes32)": { - "notice": "Subscription ID to update parameters" - }, - "subscriptions(bytes32)": { - "notice": "Subscriptions indexed by their IDs" - }, - "transferOwnership(address)": { - "notice": "Overriden to be disabled" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { - "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" - }, - "updateCurrentSubscriptionId(bytes32)": { - "notice": "If the current subscription has ended, updates it with the one that will end next" - }, - "updateDapiName(bytes32,bytes32,address,bytes)": { - "notice": "Updates the dAPI name to match the respective Merkle leaf" - }, - "updateSignedApiUrl(address,string,bytes)": { - "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" - } - }, - "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 164, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashes", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(Hash)157_storage)" - }, - { - "astId": 170, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "hashTypeToSignersHash", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2033, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "airseekerRegistry", - "offset": 0, - "slot": "3", - "type": "t_address" - }, - { - "astId": 2044, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "subscriptions", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)" - }, - { - "astId": 2050, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dapiNameToCurrentSubscriptionId", - "offset": 0, - "slot": "5", - "type": "t_mapping(t_bytes32,t_bytes32)" - }, - { - "astId": 2054, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHashToValue", - "offset": 0, - "slot": "6", - "type": "t_mapping(t_bytes32,t_bytes_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_bytes_storage": { - "encoding": "bytes", - "label": "bytes", - "numberOfBytes": "32" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_bytes_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes)", - "numberOfBytes": "32", - "value": "t_bytes_storage" - }, - "t_mapping(t_bytes32,t_struct(Hash)157_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct HashRegistry.Hash)", - "numberOfBytes": "32", - "value": "t_struct(Hash)157_storage" - }, - "t_mapping(t_bytes32,t_struct(Subscription)1986_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", - "numberOfBytes": "32", - "value": "t_struct(Subscription)1986_storage" - }, - "t_struct(Hash)157_storage": { - "encoding": "inplace", - "label": "struct HashRegistry.Hash", - "members": [ - { - "astId": 154, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 156, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "timestamp", - "offset": 0, - "slot": "1", - "type": "t_uint256" - } - ], - "numberOfBytes": "64" - }, - "t_struct(Subscription)1986_storage": { - "encoding": "inplace", - "label": "struct Api3MarketV2.Subscription", - "members": [ - { - "astId": 1979, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "updateParametersHash", - "offset": 0, - "slot": "0", - "type": "t_bytes32" - }, - { - "astId": 1981, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "endTimestamp", - "offset": 0, - "slot": "1", - "type": "t_uint32" - }, - { - "astId": 1983, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "dailyPrice", - "offset": 4, - "slot": "1", - "type": "t_uint224" - }, - { - "astId": 1985, - "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", - "label": "nextSubscriptionId", - "offset": 0, - "slot": "2", - "type": "t_bytes32" - } - ], - "numberOfBytes": "96" - }, - "t_uint224": { - "encoding": "inplace", - "label": "uint224", - "numberOfBytes": "28" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/rari/Api3ReaderProxyV1Factory.json b/deployments/rari/Api3ReaderProxyV1Factory.json deleted file mode 100644 index 50b14bb0..00000000 --- a/deployments/rari/Api3ReaderProxyV1Factory.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "initialOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1OevExtension_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnableInvalidOwner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "OwnableUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "DeployedApi3ReaderProxyV1", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "api3ServerV1OevExtension", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "computeApi3ReaderProxyV1Address", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "metadata", - "type": "bytes" - } - ], - "name": "deployApi3ReaderProxyV1", - "outputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0x56ef9743850235ae626cbff4dd5091b106bae11dff88042515afcab244448609", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "1926059", - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xb0fd2808989aa4fedcefd0254c11dfebddbfa87e749c0200659489afc78119fb", - "transactionHash": "0x56ef9743850235ae626cbff4dd5091b106bae11dff88042515afcab244448609", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 656982, - "transactionHash": "0x56ef9743850235ae626cbff4dd5091b106bae11dff88042515afcab244448609", - "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0xb0fd2808989aa4fedcefd0254c11dfebddbfa87e749c0200659489afc78119fb" - } - ], - "blockNumber": 656982, - "cumulativeGasUsed": "1926059", - "status": 1, - "byzantium": true - }, - "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], - "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", - "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", - "devdoc": { - "errors": { - "OwnableInvalidOwner(address)": [ - { - "details": "The owner is not a valid owner account. (eg. `address(0)`)" - } - ], - "OwnableUnauthorizedAccount(address)": [ - { - "details": "The caller account is not authorized to perform an operation." - } - ] - }, - "kind": "dev", - "methods": { - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "constructor": { - "params": { - "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", - "initialOwner": "Initial owner" - } - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", - "params": { - "dapiName": "dAPI name as a bytes32 string", - "dappId": "dApp ID", - "metadata": "Metadata" - }, - "returns": { - "proxy": "Proxy address" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "api3ServerV1OevExtension()": { - "notice": "Api3ServerV1OevExtension contract address" - }, - "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { - "notice": "Computes the address of the Api3ReaderProxyV1" - }, - "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { - "notice": "Deterministically deploys the Api3ReaderProxyV1" - } - }, - "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13488, - "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/rari/Api3ServerV1.json b/deployments/rari/Api3ServerV1.json deleted file mode 100644 index 5a22346f..00000000 --- a/deployments/rari/Api3ServerV1.json +++ /dev/null @@ -1,1137 +0,0 @@ -{ - "address": "0x709944a48cAf83535e43471680fDA4905FB3920a", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_accessControlRegistry", - "type": "address" - }, - { - "internalType": "string", - "name": "_adminRoleDescription", - "type": "string" - }, - { - "internalType": "address", - "name": "_manager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SetDapiName", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconSetWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedOevProxyBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "oevBeneficiary", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "DAPI_NAME_SETTER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "dapiNameHashToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dapiNameSetterRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - } - ], - "name": "dapiNameToDataFeedId", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "dataFeeds", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "name": "oevProxyToBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevProxyToIdToDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHash", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiNameHash", - "type": "bytes32" - } - ], - "name": "readDataFeedWithDapiNameHashAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithId", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "readDataFeedWithIdAsOevProxy", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dapiName", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "setDapiName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "airnode", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - } - ], - "name": "updateBeaconWithSignedData", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "updateId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes[]", - "name": "packedOevUpdateSignatures", - "type": "bytes[]" - } - ], - "name": "updateOevProxyDataFeedWithSignedData", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "oevProxy", - "type": "address" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xe01932a72a78a0be2fc2d1ec759a8b50f9c960e1dcc30e545b36f7e9a6cab72a", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "2960756", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x565cdf1d1e657937e3ca228b39cfb7ac07680e998e5c5d791348628878b9abbe", - "transactionHash": "0xe01932a72a78a0be2fc2d1ec759a8b50f9c960e1dcc30e545b36f7e9a6cab72a", - "logs": [], - "blockNumber": 315647, - "cumulativeGasUsed": "2960756", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1 admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6" - ], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_accessControlRegistry": "AccessControlRegistry contract address", - "_adminRoleDescription": "Admin role description", - "_manager": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "dapiNameToDataFeedId(bytes32)": { - "params": { - "dapiName": "dAPI name" - }, - "returns": { - "_0": "Data feed ID" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "params": { - "dapiNameHash": "dAPI name hash" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithId(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "params": { - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "setDapiName(bytes32,bytes32)": { - "details": "While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.", - "params": { - "dapiName": "Human-readable dAPI name", - "dataFeedId": "Data feed ID the dAPI name will point to" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "details": "The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.", - "params": { - "airnode": "Airnode address", - "data": "Update data (an `int256` encoded in contract ABI)", - "signature": "Template ID, timestamp and the update data signed by the Airnode", - "templateId": "Template ID", - "timestamp": "Signature timestamp" - }, - "returns": { - "beaconId": "Updated Beacon ID" - } - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "details": "For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.", - "params": { - "data": "Update data (an `int256` encoded in contract ABI)", - "dataFeedId": "Data feed ID", - "oevProxy": "OEV proxy that reads the data feed", - "packedOevUpdateSignatures": "Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash", - "timestamp": "Signature timestamp", - "updateId": "Update ID" - } - }, - "withdraw(address)": { - "details": "This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.", - "params": { - "oevProxy": "OEV proxy" - } - } - }, - "title": "First version of the contract that API3 uses to serve data feeds", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "DAPI_NAME_SETTER_ROLE_DESCRIPTION()": { - "notice": "dAPI name setter role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dapiNameHashToDataFeedId(bytes32)": { - "notice": "dAPI name hash mapped to the data feed ID" - }, - "dapiNameSetterRole()": { - "notice": "dAPI name setter role" - }, - "dapiNameToDataFeedId(bytes32)": { - "notice": "Returns the data feed ID the dAPI name is set to" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevProxyToBalance(address)": { - "notice": "Accumulated OEV auction proceeds for the specific proxy" - }, - "readDataFeedWithDapiNameHash(bytes32)": { - "notice": "Reads the data feed with dAPI name hash" - }, - "readDataFeedWithDapiNameHashAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with dAPI name hash" - }, - "readDataFeedWithId(bytes32)": { - "notice": "Reads the data feed with ID" - }, - "readDataFeedWithIdAsOevProxy(bytes32)": { - "notice": "Reads the data feed as the OEV proxy with ID" - }, - "setDapiName(bytes32,bytes32)": { - "notice": "Sets the data feed ID the dAPI name points to" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { - "notice": "Updates a Beacon using data signed by the Airnode" - }, - "updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])": { - "notice": "Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid" - }, - "withdraw(address)": { - "notice": "Withdraws the balance of the OEV proxy to the respective beneficiary account" - } - }, - "notice": "Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "adminRoleDescription", - "offset": 0, - "slot": "0", - "type": "t_string_storage" - }, - { - "astId": 4803, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_dataFeeds", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - { - "astId": 6904, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "_oevProxyToIdToDataFeed", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" - }, - { - "astId": 6910, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "oevProxyToBalance", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_address,t_uint256)" - }, - { - "astId": 4625, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "dapiNameHashToDataFeedId", - "offset": 0, - "slot": "4", - "type": "t_mapping(t_bytes32,t_bytes32)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" - }, - "t_mapping(t_address,t_uint256)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_mapping(t_bytes32,t_bytes32)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => bytes32)", - "numberOfBytes": "32", - "value": "t_bytes32" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)4797_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 4794, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 4796, - "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/rari/Api3ServerV1OevExtension.json b/deployments/rari/Api3ServerV1OevExtension.json deleted file mode 100644 index bb9926e7..00000000 --- a/deployments/rari/Api3ServerV1OevExtension.json +++ /dev/null @@ -1,1020 +0,0 @@ -{ - "address": "0x2E787629c3B7545271240A87197108823ce8303b", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "accessControlRegistry_", - "type": "address" - }, - { - "internalType": "string", - "name": "adminRoleDescription_", - "type": "string" - }, - { - "internalType": "address", - "name": "manager_", - "type": "address" - }, - { - "internalType": "address", - "name": "api3ServerV1_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "signedDataTimestampCutoff", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "auctioneer", - "type": "address" - } - ], - "name": "PaidOevBid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconSetWithBeacons", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "beaconId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "name": "UpdatedBeaconWithSignedData", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "name": "UpdatedDappOevDataFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "Withdrew", - "type": "event" - }, - { - "inputs": [], - "name": "AUCTIONEER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "WITHDRAWER_ROLE_DESCRIPTION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accessControlRegistry", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "adminRoleDescription", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "api3ServerV1", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "auctioneerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "containsBytecode", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "dappIdToLastPaidBid", - "outputs": [ - { - "internalType": "address", - "name": "updater", - "type": "address" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "getBalance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockBasefee", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockNumber", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getBlockTimestamp", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "manager", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "multicall", - "outputs": [ - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "dataFeedId", - "type": "bytes32" - } - ], - "name": "oevDataFeed", - "outputs": [ - { - "internalType": "int224", - "name": "value", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "timestamp", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "bidAmount", - "type": "uint256" - }, - { - "internalType": "uint32", - "name": "signedDataTimestampCutoff", - "type": "uint32" - }, - { - "internalType": "bytes", - "name": "signature", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "payOevBid", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "simulateDappOevDataFeedUpdate", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "simulateExternalCall", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes[]", - "name": "data", - "type": "bytes[]" - } - ], - "name": "tryMulticall", - "outputs": [ - { - "internalType": "bool[]", - "name": "successes", - "type": "bool[]" - }, - { - "internalType": "bytes[]", - "name": "returndata", - "type": "bytes[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[]", - "name": "beaconIds", - "type": "bytes32[]" - } - ], - "name": "updateBeaconSetWithBeacons", - "outputs": [ - { - "internalType": "bytes32", - "name": "beaconSetId", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "dappId", - "type": "uint256" - }, - { - "internalType": "bytes[]", - "name": "signedData", - "type": "bytes[]" - } - ], - "name": "updateDappOevDataFeed", - "outputs": [ - { - "internalType": "bytes32", - "name": "baseDataFeedId", - "type": "bytes32" - }, - { - "internalType": "int224", - "name": "updatedValue", - "type": "int224" - }, - { - "internalType": "uint32", - "name": "updatedTimestamp", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawerRole", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0xa06a63bd163ce558496d6e05fe4fe2c8f630cd74d6a902a1d3fa82484a5acf90", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "3267378", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x0ec25e24c9eabb75d14b625da595f546a812af0fe9719035a07b26961c4e448c", - "transactionHash": "0xa06a63bd163ce558496d6e05fe4fe2c8f630cd74d6a902a1d3fa82484a5acf90", - "logs": [], - "blockNumber": 656981, - "cumulativeGasUsed": "3267378", - "status": 1, - "byzantium": true - }, - "args": [ - "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", - "Api3ServerV1OevExtension admin", - "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "0x709944a48cAf83535e43471680fDA4905FB3920a" - ], - "numDeployments": 1, - "solcInputHash": "69404b24fc871d37136875d5dfb0242e", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "accessControlRegistry_": "AccessControlRegistry contract address", - "adminRoleDescription_": "Admin role description", - "api3ServerV1_": "Api3ServerV1 address", - "manager_": "Manager address" - } - }, - "containsBytecode(address)": { - "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", - "returns": { - "_0": "If the account contains bytecode" - } - }, - "getBalance(address)": { - "params": { - "account": "Account address" - }, - "returns": { - "_0": "Account balance" - } - }, - "getBlockBasefee()": { - "returns": { - "_0": "Current block basefee" - } - }, - "getBlockNumber()": { - "returns": { - "_0": "Current block number" - } - }, - "getBlockTimestamp()": { - "returns": { - "_0": "Current block timestamp" - } - }, - "getChainId()": { - "returns": { - "_0": "Chain ID" - } - }, - "multicall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls" - } - }, - "oevDataFeed(uint256,bytes32)": { - "params": { - "dappId": "dApp ID", - "dataFeedId": "Data feed ID" - }, - "returns": { - "timestamp": "Data feed timestamp", - "value": "Data feed value" - } - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "params": { - "bidAmount": "Bid amount", - "dappId": "dApp ID", - "data": "Data that will be passed through the callback", - "signature": "Signature provided by an auctioneer", - "signedDataTimestampCutoff": "Signed data timestamp cut-off" - } - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "simulateExternalCall(address,bytes)": { - "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", - "params": { - "data": "Calldata of the external call", - "target": "Target address of the external call" - }, - "returns": { - "_0": "Returndata of the external call" - } - }, - "tryMulticall(bytes[])": { - "params": { - "data": "Array of calldata of batched calls" - }, - "returns": { - "returndata": "Array of returndata of batched calls", - "successes": "Array of success conditions of batched calls" - } - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", - "params": { - "beaconIds": "Beacon IDs" - }, - "returns": { - "beaconSetId": "Beacon set ID" - } - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "params": { - "dappId": "dApp ID", - "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" - }, - "returns": { - "baseDataFeedId": "Base data feed ID", - "updatedTimestamp": "Updated timestamp", - "updatedValue": "Updated value" - } - }, - "withdraw(address,uint256)": { - "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", - "params": { - "amount": "Amount", - "recipient": "Recipient address" - } - } - }, - "title": "Api3ServerV1 extension for OEV support", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "AUCTIONEER_ROLE_DESCRIPTION()": { - "notice": "Auctioneer role description" - }, - "WITHDRAWER_ROLE_DESCRIPTION()": { - "notice": "Withdrawer role description" - }, - "accessControlRegistry()": { - "notice": "AccessControlRegistry contract address" - }, - "adminRole()": { - "notice": "Admin role" - }, - "adminRoleDescription()": { - "notice": "Admin role description" - }, - "api3ServerV1()": { - "notice": "Api3ServerV1 contract address" - }, - "auctioneerRole()": { - "notice": "Auctioneer role" - }, - "containsBytecode(address)": { - "notice": "Returns if the account contains bytecode" - }, - "dappIdToLastPaidBid(uint256)": { - "notice": "Returns the parameters of the last paid bid for the dApp with ID" - }, - "getBalance(address)": { - "notice": "Returns the account balance" - }, - "getBlockBasefee()": { - "notice": "Returns the current block basefee" - }, - "getBlockNumber()": { - "notice": "Returns the current block number" - }, - "getBlockTimestamp()": { - "notice": "Returns the current block timestamp" - }, - "getChainId()": { - "notice": "Returns the chain ID" - }, - "manager()": { - "notice": "Address of the manager that manages the related AccessControlRegistry roles" - }, - "multicall(bytes[])": { - "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" - }, - "oevDataFeed(uint256,bytes32)": { - "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." - }, - "payOevBid(uint256,uint256,uint32,bytes,bytes)": { - "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." - }, - "simulateDappOevDataFeedUpdate(uint256,bytes[])": { - "notice": "Called by the zero address to simulate an OEV data feed update" - }, - "simulateExternalCall(address,bytes)": { - "notice": "Called by the zero address to simulate an external call" - }, - "tryMulticall(bytes[])": { - "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" - }, - "updateBeaconSetWithBeacons(bytes32[])": { - "notice": "Updates the Beacon set using the current values of its Beacons" - }, - "updateDappOevDataFeed(uint256,bytes[])": { - "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" - }, - "withdraw(address,uint256)": { - "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" - }, - "withdrawerRole()": { - "notice": "Withdrawer role" - } - }, - "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 7524, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_status", - "offset": 0, - "slot": "0", - "type": "t_uint256" - }, - { - "astId": 176, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "adminRoleDescription", - "offset": 0, - "slot": "1", - "type": "t_string_storage" - }, - { - "astId": 1797, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "_dataFeeds", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" - }, - { - "astId": 703, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "dappIdToLastPaidBid", - "offset": 0, - "slot": "3", - "type": "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_int224": { - "encoding": "inplace", - "label": "int224", - "numberOfBytes": "28" - }, - "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", - "numberOfBytes": "32", - "value": "t_struct(DataFeed)1791_storage" - }, - "t_mapping(t_uint256,t_struct(LastPaidBid)674_storage)": { - "encoding": "mapping", - "key": "t_uint256", - "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", - "numberOfBytes": "32", - "value": "t_struct(LastPaidBid)674_storage" - }, - "t_string_storage": { - "encoding": "bytes", - "label": "string", - "numberOfBytes": "32" - }, - "t_struct(DataFeed)1791_storage": { - "encoding": "inplace", - "label": "struct DataFeedServer.DataFeed", - "members": [ - { - "astId": 1788, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "value", - "offset": 0, - "slot": "0", - "type": "t_int224" - }, - { - "astId": 1790, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "timestamp", - "offset": 28, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_struct(LastPaidBid)674_storage": { - "encoding": "inplace", - "label": "struct Api3ServerV1OevExtension.LastPaidBid", - "members": [ - { - "astId": 671, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "updater", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 673, - "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", - "label": "signedDataTimestampCutoff", - "offset": 20, - "slot": "0", - "type": "t_uint32" - } - ], - "numberOfBytes": "32" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - }, - "t_uint32": { - "encoding": "inplace", - "label": "uint32", - "numberOfBytes": "4" - } - } - } -} diff --git a/deployments/rari/GnosisSafeWithoutProxy.json b/deployments/rari/GnosisSafeWithoutProxy.json deleted file mode 100644 index 2bec48b0..00000000 --- a/deployments/rari/GnosisSafeWithoutProxy.json +++ /dev/null @@ -1,1464 +0,0 @@ -{ - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "abi": [ - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "AddedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "approvedHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "ApproveHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "ChangedFallbackHandler", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "ChangedGuard", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - } - ], - "name": "ChangedThreshold", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "DisabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "EnabledModule", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleFailure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "ExecutionFromModuleSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "payment", - "type": "uint256" - } - ], - "name": "ExecutionSuccess", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "RemovedOwner", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "SafeReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "initiator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "owners", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "threshold", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "initializer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - } - ], - "name": "SafeSetup", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "msgHash", - "type": "bytes32" - } - ], - "name": "SignMsg", - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "fallback" - }, - { - "inputs": [], - "name": "VERSION", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "addOwnerWithThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "hashToApprove", - "type": "bytes32" - } - ], - "name": "approveHash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "approvedHashes", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "changeThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "requiredSignatures", - "type": "uint256" - } - ], - "name": "checkNSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "checkSignatures", - "outputs": [], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevModule", - "type": "address" - }, - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "disableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "domainSeparator", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "enableModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "encodeTransactionData", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address payable", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "bytes", - "name": "signatures", - "type": "bytes" - } - ], - "name": "execTransaction", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModule", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "execTransactionFromModuleReturnData", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getChainId", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "start", - "type": "address" - }, - { - "internalType": "uint256", - "name": "pageSize", - "type": "uint256" - } - ], - "name": "getModulesPaginated", - "outputs": [ - { - "internalType": "address[]", - "name": "array", - "type": "address[]" - }, - { - "internalType": "address", - "name": "next", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOwners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "getStorageAt", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getThreshold", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "safeTxGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "baseGas", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "gasPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "gasToken", - "type": "address" - }, - { - "internalType": "address", - "name": "refundReceiver", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_nonce", - "type": "uint256" - } - ], - "name": "getTransactionHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "module", - "type": "address" - } - ], - "name": "isModuleEnabled", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "isOwner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonce", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "removeOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "enum Enum.Operation", - "name": "operation", - "type": "uint8" - } - ], - "name": "requiredTxGas", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "handler", - "type": "address" - } - ], - "name": "setFallbackHandler", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "guard", - "type": "address" - } - ], - "name": "setGuard", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_owners", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "address", - "name": "fallbackHandler", - "type": "address" - }, - { - "internalType": "address", - "name": "paymentToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "payment", - "type": "uint256" - }, - { - "internalType": "address payable", - "name": "paymentReceiver", - "type": "address" - } - ], - "name": "setup", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "signedMessages", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "targetContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "calldataPayload", - "type": "bytes" - } - ], - "name": "simulateAndRevert", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "swapOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } - ], - "transactionHash": "0x13b80f02c0a6b91d3c969573884c55bd81d760a5050b86c985f4b3d226c9f467", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "3031865", - "logsBloom": "0x000000004000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", - "blockHash": "0xa1f6f6bc3e9e7bd0c2af1640d1d7b10a986d00fd3bfa16585ff04d955301a3c6", - "transactionHash": "0x13b80f02c0a6b91d3c969573884c55bd81d760a5050b86c985f4b3d226c9f467", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 1419445, - "transactionHash": "0x13b80f02c0a6b91d3c969573884c55bd81d760a5050b86c985f4b3d226c9f467", - "address": "0x2AAE699ed04BBbD068f67a5b3C813eBB35f2c9E8", - "topics": [ - "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", - "logIndex": 0, - "blockHash": "0xa1f6f6bc3e9e7bd0c2af1640d1d7b10a986d00fd3bfa16585ff04d955301a3c6" - } - ], - "blockNumber": 1419445, - "cumulativeGasUsed": "3031865", - "status": 1, - "byzantium": true - }, - "args": [ - [ - "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", - "0x80efDd3bB15F2108C407049C5575490858800D47", - "0x56AfB8383B3E8DB331E711e1183F195CeD7B9FaF", - "0x5b2962121b4334fe563F7062feA975f51313EDE3", - "0x09dEa15D4E1F82787e181F23788Dc3f4b3d3DAE4", - "0x70cC8f7C40A8e65A73b804Ad1c49F39D40ea3050", - "0x433171908d5BAB4ac0E860c64D1333F51A310321", - "0x918350a01A4C259FBCc94c6Fb2ca49A3753BDb86" - ], - 4 - ], - "numDeployments": 1, - "solcInputHash": "dd37083e887d24e73b7b9f1b390a71b0", - "metadata": "{\"compiler\":{\"version\":\"0.8.12+commit.f00d7308\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"approvedHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ApproveHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"ChangedFallbackHandler\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"ChangedGuard\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"}],\"name\":\"ChangedThreshold\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"DisabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"EnabledModule\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"ExecutionFromModuleSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"txHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"}],\"name\":\"ExecutionSuccess\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"RemovedOwner\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"owners\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"threshold\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initializer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"}],\"name\":\"SafeSetup\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"}],\"name\":\"SignMsg\",\"type\":\"event\"},{\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"addOwnerWithThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashToApprove\",\"type\":\"bytes32\"}],\"name\":\"approveHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"approvedHashes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"changeThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"requiredSignatures\",\"type\":\"uint256\"}],\"name\":\"checkNSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"checkSignatures\",\"outputs\":[],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevModule\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"disableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"enableModule\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"encodeTransactionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signatures\",\"type\":\"bytes\"}],\"name\":\"execTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModule\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"execTransactionFromModuleReturnData\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"start\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getModulesPaginated\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"array\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"next\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOwners\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"getStorageAt\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"safeTxGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasPrice\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gasToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"refundReceiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_nonce\",\"type\":\"uint256\"}],\"name\":\"getTransactionHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"module\",\"type\":\"address\"}],\"name\":\"isModuleEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"}],\"name\":\"removeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"enum Enum.Operation\",\"name\":\"operation\",\"type\":\"uint8\"}],\"name\":\"requiredTxGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"handler\",\"type\":\"address\"}],\"name\":\"setFallbackHandler\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"setGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_owners\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_threshold\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"fallbackHandler\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"paymentToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"payment\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"paymentReceiver\",\"type\":\"address\"}],\"name\":\"setup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"signedMessages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"targetContract\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"calldataPayload\",\"type\":\"bytes\"}],\"name\":\"simulateAndRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prevOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"swapOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"details\":\"Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"New owner address.\"}},\"approveHash(bytes32)\":{\"details\":\"Marks a hash as approved. This can be used to validate a hash that is used by a signature.\",\"params\":{\"hashToApprove\":\"The hash that should be marked as approved for signatures that are verified by this contract.\"}},\"changeThreshold(uint256)\":{\"details\":\"Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\"}},\"checkNSignatures(bytes32,bytes,bytes,uint256)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"requiredSignatures\":\"Amount of required valid signatures.\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"checkSignatures(bytes32,bytes,bytes)\":{\"details\":\"Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\",\"params\":{\"data\":\"That should be signed (this is passed to an external validator contract)\",\"dataHash\":\"Hash of the data (could be either a message hash or transaction hash)\",\"signatures\":\"Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\"}},\"constructor\":{\"details\":\"The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.\",\"params\":{\"_owners\":\"Owners\",\"_threshold\":\"Number of required confirmations for a transaction\"}},\"disableModule(address,address)\":{\"details\":\"Allows to remove a module from the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be removed.\",\"prevModule\":\"Module that pointed to the module to be removed in the linked list\"}},\"enableModule(address)\":{\"details\":\"Allows to add a module to the whitelist. This can only be done via a Safe transaction.\",\"params\":{\"module\":\"Module to be whitelisted.\"}},\"encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns the bytes that are hashed to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash bytes.\"}},\"execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)\":{\"details\":\"Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.\",\"params\":{\"baseGas\":\"Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\",\"data\":\"Data payload of Safe transaction.\",\"gasPrice\":\"Gas price that should be used for the payment calculation.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type of Safe transaction.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Gas that should be used for the Safe transaction.\",\"signatures\":\"Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"}},\"execTransactionFromModule(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations.\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"execTransactionFromModuleReturnData(address,uint256,bytes,uint8)\":{\"details\":\"Allows a Module to execute a Safe transaction without any further confirmations and return data\",\"params\":{\"data\":\"Data payload of module transaction.\",\"operation\":\"Operation type of module transaction.\",\"to\":\"Destination address of module transaction.\",\"value\":\"Ether value of module transaction.\"}},\"getChainId()\":{\"details\":\"Returns the chain id used by this contract.\"},\"getModulesPaginated(address,uint256)\":{\"details\":\"Returns array of modules.\",\"params\":{\"pageSize\":\"Maximum number of modules that should be returned.\",\"start\":\"Start of the page.\"},\"returns\":{\"array\":\"Array of modules.\",\"next\":\"Start of the next page.\"}},\"getOwners()\":{\"details\":\"Returns array of owners.\",\"returns\":{\"_0\":\"Array of Safe owners.\"}},\"getStorageAt(uint256,uint256)\":{\"details\":\"Reads `length` bytes of storage in the currents contract\",\"params\":{\"length\":\"- the number of words (32 bytes) of data to read\",\"offset\":\"- the offset in the current contract's storage in words to start reading from\"},\"returns\":{\"_0\":\"the bytes that were read.\"}},\"getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)\":{\"details\":\"Returns hash to be signed by owners.\",\"params\":{\"_nonce\":\"Transaction nonce.\",\"baseGas\":\"Gas costs for data used to trigger the safe transaction.\",\"data\":\"Data payload.\",\"gasPrice\":\"Maximum gas price that should be used for this transaction.\",\"gasToken\":\"Token address (or 0 if ETH) that is used for the payment.\",\"operation\":\"Operation type.\",\"refundReceiver\":\"Address of receiver of gas payment (or 0 if tx.origin).\",\"safeTxGas\":\"Fas that should be used for the safe transaction.\",\"to\":\"Destination address.\",\"value\":\"Ether value.\"},\"returns\":{\"_0\":\"Transaction hash.\"}},\"isModuleEnabled(address)\":{\"details\":\"Returns if an module is enabled\",\"returns\":{\"_0\":\"True if the module is enabled\"}},\"removeOwner(address,address,uint256)\":{\"details\":\"Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.\",\"params\":{\"_threshold\":\"New threshold.\",\"owner\":\"Owner address to be removed.\",\"prevOwner\":\"Owner that pointed to the owner to be removed in the linked list\"}},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"details\":\"Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\",\"params\":{\"data\":\"Data payload of Safe transaction.\",\"operation\":\"Operation type of Safe transaction.\",\"to\":\"Destination address of Safe transaction.\",\"value\":\"Ether value of Safe transaction.\"},\"returns\":{\"_0\":\"Estimate without refunds and overhead fees (base transaction and payload data gas costs).\"}},\"setFallbackHandler(address)\":{\"details\":\"Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.\",\"params\":{\"handler\":\"contract to handle fallbacks calls.\"}},\"setGuard(address)\":{\"details\":\"Set a guard that checks transactions before execution\",\"params\":{\"guard\":\"The address of the guard to be used or the 0 address to disable the guard\"}},\"setup(address[],uint256,address,bytes,address,address,uint256,address)\":{\"details\":\"Setup function sets initial storage of contract.\",\"params\":{\"_owners\":\"List of Safe owners.\",\"_threshold\":\"Number of required confirmations for a Safe transaction.\",\"data\":\"Data payload for optional delegate call.\",\"fallbackHandler\":\"Handler for fallback calls to this contract\",\"payment\":\"Value that should be paid\",\"paymentReceiver\":\"Adddress that should receive the payment (or 0 if tx.origin)\",\"paymentToken\":\"Token that should be used for the payment (0 is ETH)\",\"to\":\"Contract address for optional delegate call.\"}},\"simulateAndRevert(address,bytes)\":{\"details\":\"Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.\",\"params\":{\"calldataPayload\":\"Calldata that should be sent to the target contract (encoded method name and arguments).\",\"targetContract\":\"Address of the contract containing the code to execute.\"}},\"swapOwner(address,address,address)\":{\"details\":\"Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.\",\"params\":{\"newOwner\":\"New owner address.\",\"oldOwner\":\"Owner address to be replaced.\",\"prevOwner\":\"Owner that pointed to the owner to be replaced in the linked list\"}}},\"title\":\"Gnosis Safe 1.3.0 modified to be used without a proxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addOwnerWithThreshold(address,uint256)\":{\"notice\":\"Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\"},\"changeThreshold(uint256)\":{\"notice\":\"Changes the threshold of the Safe to `_threshold`.\"},\"disableModule(address,address)\":{\"notice\":\"Disables the module `module` for the Safe.\"},\"enableModule(address)\":{\"notice\":\"Enables the module `module` for the Safe.\"},\"removeOwner(address,address,uint256)\":{\"notice\":\"Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\"},\"requiredTxGas(address,uint256,bytes,uint8)\":{\"notice\":\"Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\"},\"swapOwner(address,address,address)\":{\"notice\":\"Replaces the owner `oldOwner` in the Safe with `newOwner`.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":\"GnosisSafeWithoutProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/access/GnosisSafeWithoutProxy.sol\":{\"content\":\"//SPDX-License-Identifier: MIT\\npragma solidity 0.8.12;\\n\\nimport \\\"../vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\\\";\\n\\n/// @title Gnosis Safe 1.3.0 modified to be used without a proxy\\ncontract GnosisSafeWithoutProxy is GnosisSafe {\\n /// @dev The GnosisSafe constructor disables the contract from being set up\\n /// so that it can only be used through proxies. We undo that here and then\\n /// do the setup.\\n /// @param _owners Owners\\n /// @param _threshold Number of required confirmations for a transaction\\n constructor(address[] memory _owners, uint256 _threshold) {\\n // Reset `threshold` to be able to set up owners\\n threshold = 0;\\n // Go through the GnosisSafe `setup()` steps\\n setupOwners(_owners, _threshold);\\n // Do not set up a fallback handler\\n address fallbackHandler = address(0);\\n // Do not set up modules\\n address to = address(0);\\n bytes memory data = \\\"\\\";\\n setupModules(to, data);\\n // Do not make payment\\n // Emit the event as if `setup()` was called\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n}\\n\",\"keccak256\":\"0x548246445daaa06f1f60154e6290831951fedbca33a42170dad61667e17466b9\",\"license\":\"MIT\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/GnosisSafe.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"./base/ModuleManager.sol\\\";\\nimport \\\"./base/OwnerManager.sol\\\";\\nimport \\\"./base/FallbackManager.sol\\\";\\nimport \\\"./base/GuardManager.sol\\\";\\nimport \\\"./common/EtherPaymentFallback.sol\\\";\\nimport \\\"./common/Singleton.sol\\\";\\nimport \\\"./common/SignatureDecoder.sol\\\";\\nimport \\\"./common/SecuredTokenTransfer.sol\\\";\\nimport \\\"./common/StorageAccessible.sol\\\";\\nimport \\\"./interfaces/ISignatureValidator.sol\\\";\\nimport \\\"./external/GnosisSafeMath.sol\\\";\\n\\n/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract GnosisSafe is\\n EtherPaymentFallback,\\n Singleton,\\n ModuleManager,\\n OwnerManager,\\n SignatureDecoder,\\n SecuredTokenTransfer,\\n ISignatureValidatorConstants,\\n FallbackManager,\\n StorageAccessible,\\n GuardManager\\n{\\n using GnosisSafeMath for uint256;\\n\\n string public constant VERSION = \\\"1.3.0\\\";\\n\\n // keccak256(\\n // \\\"EIP712Domain(uint256 chainId,address verifyingContract)\\\"\\n // );\\n bytes32 private constant DOMAIN_SEPARATOR_TYPEHASH = 0x47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a79469218;\\n\\n // keccak256(\\n // \\\"SafeTx(address to,uint256 value,bytes data,uint8 operation,uint256 safeTxGas,uint256 baseGas,uint256 gasPrice,address gasToken,address refundReceiver,uint256 nonce)\\\"\\n // );\\n bytes32 private constant SAFE_TX_TYPEHASH = 0xbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d8;\\n\\n event SafeSetup(address indexed initiator, address[] owners, uint256 threshold, address initializer, address fallbackHandler);\\n event ApproveHash(bytes32 indexed approvedHash, address indexed owner);\\n event SignMsg(bytes32 indexed msgHash);\\n event ExecutionFailure(bytes32 txHash, uint256 payment);\\n event ExecutionSuccess(bytes32 txHash, uint256 payment);\\n\\n uint256 public nonce;\\n bytes32 private _deprecatedDomainSeparator;\\n // Mapping to keep track of all message hashes that have been approve by ALL REQUIRED owners\\n mapping(bytes32 => uint256) public signedMessages;\\n // Mapping to keep track of all hashes (message or transaction) that have been approve by ANY owners\\n mapping(address => mapping(bytes32 => uint256)) public approvedHashes;\\n\\n // This constructor ensures that this contract can only be used as a master copy for Proxy contracts\\n constructor() {\\n // By setting the threshold it is not possible to call setup anymore,\\n // so we create a Safe with 0 owners and threshold 1.\\n // This is an unusable Safe, perfect for the singleton\\n threshold = 1;\\n }\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n /// @param to Contract address for optional delegate call.\\n /// @param data Data payload for optional delegate call.\\n /// @param fallbackHandler Handler for fallback calls to this contract\\n /// @param paymentToken Token that should be used for the payment (0 is ETH)\\n /// @param payment Value that should be paid\\n /// @param paymentReceiver Adddress that should receive the payment (or 0 if tx.origin)\\n function setup(\\n address[] calldata _owners,\\n uint256 _threshold,\\n address to,\\n bytes calldata data,\\n address fallbackHandler,\\n address paymentToken,\\n uint256 payment,\\n address payable paymentReceiver\\n ) external {\\n // setupOwners checks if the Threshold is already set, therefore preventing that this method is called twice\\n setupOwners(_owners, _threshold);\\n if (fallbackHandler != address(0)) internalSetFallbackHandler(fallbackHandler);\\n // As setupOwners can only be called if the contract has not been initialized we don't need a check for setupModules\\n setupModules(to, data);\\n\\n if (payment > 0) {\\n // To avoid running into issues with EIP-170 we reuse the handlePayment function (to avoid adjusting code of that has been verified we do not adjust the method itself)\\n // baseGas = 0, gasPrice = 1 and gas = payment => amount = (payment + 0) * 1 = payment\\n handlePayment(payment, 0, 1, paymentToken, paymentReceiver);\\n }\\n emit SafeSetup(msg.sender, _owners, _threshold, to, fallbackHandler);\\n }\\n\\n /// @dev Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction.\\n /// Note: The fees are always transferred, even if the user transaction fails.\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @param safeTxGas Gas that should be used for the Safe transaction.\\n /// @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Gas price that should be used for the payment calculation.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})\\n function execTransaction(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures\\n ) public payable virtual returns (bool success) {\\n bytes32 txHash;\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n bytes memory txHashData =\\n encodeTransactionData(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n nonce\\n );\\n // Increase nonce and execute transaction.\\n nonce++;\\n txHash = keccak256(txHashData);\\n checkSignatures(txHash, txHashData, signatures);\\n }\\n address guard = getGuard();\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkTransaction(\\n // Transaction info\\n to,\\n value,\\n data,\\n operation,\\n safeTxGas,\\n // Payment info\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n // Signature info\\n signatures,\\n msg.sender\\n );\\n }\\n }\\n // We require some gas to emit the events (at least 2500) after the execution and some to perform code until the execution (500)\\n // We also include the 1/64 in the check that is not send along with a call to counteract potential shortings because of EIP-150\\n require(gasleft() >= ((safeTxGas * 64) / 63).max(safeTxGas + 2500) + 500, \\\"GS010\\\");\\n // Use scope here to limit variable lifetime and prevent `stack too deep` errors\\n {\\n uint256 gasUsed = gasleft();\\n // If the gasPrice is 0 we assume that nearly all available gas can be used (it is always more than safeTxGas)\\n // We only substract 2500 (compared to the 3000 before) to ensure that the amount passed is still higher than safeTxGas\\n success = execute(to, value, data, operation, gasPrice == 0 ? (gasleft() - 2500) : safeTxGas);\\n gasUsed = gasUsed.sub(gasleft());\\n // If no safeTxGas and no gasPrice was set (e.g. both are 0), then the internal tx is required to be successful\\n // This makes it possible to use `estimateGas` without issues, as it searches for the minimum gas where the tx doesn't revert\\n require(success || safeTxGas != 0 || gasPrice != 0, \\\"GS013\\\");\\n // We transfer the calculated tx costs to the tx.origin to avoid sending it to intermediate contracts that have made calls\\n uint256 payment = 0;\\n if (gasPrice > 0) {\\n payment = handlePayment(gasUsed, baseGas, gasPrice, gasToken, refundReceiver);\\n }\\n if (success) emit ExecutionSuccess(txHash, payment);\\n else emit ExecutionFailure(txHash, payment);\\n }\\n {\\n if (guard != address(0)) {\\n Guard(guard).checkAfterExecution(txHash, success);\\n }\\n }\\n }\\n\\n function handlePayment(\\n uint256 gasUsed,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver\\n ) private returns (uint256 payment) {\\n // solhint-disable-next-line avoid-tx-origin\\n address payable receiver = refundReceiver == address(0) ? payable(tx.origin) : refundReceiver;\\n if (gasToken == address(0)) {\\n // For ETH we will only adjust the gas price to not be higher than the actual used gas price\\n payment = gasUsed.add(baseGas).mul(gasPrice < tx.gasprice ? gasPrice : tx.gasprice);\\n require(receiver.send(payment), \\\"GS011\\\");\\n } else {\\n payment = gasUsed.add(baseGas).mul(gasPrice);\\n require(transferToken(gasToken, receiver, payment), \\\"GS012\\\");\\n }\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n */\\n function checkSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures\\n ) public view {\\n // Load threshold to avoid multiple storage loads\\n uint256 _threshold = threshold;\\n // Check that a threshold is set\\n require(_threshold > 0, \\\"GS001\\\");\\n checkNSignatures(dataHash, data, signatures, _threshold);\\n }\\n\\n /**\\n * @dev Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.\\n * @param dataHash Hash of the data (could be either a message hash or transaction hash)\\n * @param data That should be signed (this is passed to an external validator contract)\\n * @param signatures Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash.\\n * @param requiredSignatures Amount of required valid signatures.\\n */\\n function checkNSignatures(\\n bytes32 dataHash,\\n bytes memory data,\\n bytes memory signatures,\\n uint256 requiredSignatures\\n ) public view {\\n // Check that the provided signature data is not too short\\n require(signatures.length >= requiredSignatures.mul(65), \\\"GS020\\\");\\n // There cannot be an owner with address 0.\\n address lastOwner = address(0);\\n address currentOwner;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n uint256 i;\\n for (i = 0; i < requiredSignatures; i++) {\\n (v, r, s) = signatureSplit(signatures, i);\\n if (v == 0) {\\n // If v is 0 then it is a contract signature\\n // When handling contract signatures the address of the contract is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n\\n // Check that signature data pointer (s) is not pointing inside the static part of the signatures bytes\\n // This check is not completely accurate, since it is possible that more signatures than the threshold are send.\\n // Here we only check that the pointer is not pointing inside the part that is being processed\\n require(uint256(s) >= requiredSignatures.mul(65), \\\"GS021\\\");\\n\\n // Check that signature data pointer (s) is in bounds (points to the length of data -> 32 bytes)\\n require(uint256(s).add(32) <= signatures.length, \\\"GS022\\\");\\n\\n // Check if the contract signature is in bounds: start of data is s + 32 and end is start + signature length\\n uint256 contractSignatureLen;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n contractSignatureLen := mload(add(add(signatures, s), 0x20))\\n }\\n require(uint256(s).add(32).add(contractSignatureLen) <= signatures.length, \\\"GS023\\\");\\n\\n // Check signature\\n bytes memory contractSignature;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // The signature data for contract signatures is appended to the concatenated signatures and the offset is stored in s\\n contractSignature := add(add(signatures, s), 0x20)\\n }\\n require(ISignatureValidator(currentOwner).isValidSignature(data, contractSignature) == EIP1271_MAGIC_VALUE, \\\"GS024\\\");\\n } else if (v == 1) {\\n // If v is 1 then it is an approved hash\\n // When handling approved hashes the address of the approver is encoded into r\\n currentOwner = address(uint160(uint256(r)));\\n // Hashes are automatically approved by the sender of the message or when they have been pre-approved via a separate transaction\\n require(msg.sender == currentOwner || approvedHashes[currentOwner][dataHash] != 0, \\\"GS025\\\");\\n } else if (v > 30) {\\n // If v > 30 then default va (27,28) has been adjusted for eth_sign flow\\n // To support eth_sign and similar we adjust v and hash the messageHash with the Ethereum message prefix before applying ecrecover\\n currentOwner = ecrecover(keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", dataHash)), v - 4, r, s);\\n } else {\\n // Default is the ecrecover flow with the provided data hash\\n // Use ecrecover with the messageHash for EOA signatures\\n currentOwner = ecrecover(dataHash, v, r, s);\\n }\\n require(currentOwner > lastOwner && owners[currentOwner] != address(0) && currentOwner != SENTINEL_OWNERS, \\\"GS026\\\");\\n lastOwner = currentOwner;\\n }\\n }\\n\\n /// @dev Allows to estimate a Safe transaction.\\n /// This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data.\\n /// Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`\\n /// @param to Destination address of Safe transaction.\\n /// @param value Ether value of Safe transaction.\\n /// @param data Data payload of Safe transaction.\\n /// @param operation Operation type of Safe transaction.\\n /// @return Estimate without refunds and overhead fees (base transaction and payload data gas costs).\\n /// @notice Deprecated in favor of common/StorageAccessible.sol and will be removed in next version.\\n function requiredTxGas(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation\\n ) external returns (uint256) {\\n uint256 startGas = gasleft();\\n // We don't provide an error message here, as we use it to return the estimate\\n require(execute(to, value, data, operation, gasleft()));\\n uint256 requiredGas = startGas - gasleft();\\n // Convert response to string and return via error message\\n revert(string(abi.encodePacked(requiredGas)));\\n }\\n\\n /**\\n * @dev Marks a hash as approved. This can be used to validate a hash that is used by a signature.\\n * @param hashToApprove The hash that should be marked as approved for signatures that are verified by this contract.\\n */\\n function approveHash(bytes32 hashToApprove) external {\\n require(owners[msg.sender] != address(0), \\\"GS030\\\");\\n approvedHashes[msg.sender][hashToApprove] = 1;\\n emit ApproveHash(hashToApprove, msg.sender);\\n }\\n\\n /// @dev Returns the chain id used by this contract.\\n function getChainId() public view returns (uint256) {\\n uint256 id;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n id := chainid()\\n }\\n return id;\\n }\\n\\n function domainSeparator() public view returns (bytes32) {\\n return keccak256(abi.encode(DOMAIN_SEPARATOR_TYPEHASH, getChainId(), this));\\n }\\n\\n /// @dev Returns the bytes that are hashed to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Gas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash bytes.\\n function encodeTransactionData(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes memory) {\\n bytes32 safeTxHash =\\n keccak256(\\n abi.encode(\\n SAFE_TX_TYPEHASH,\\n to,\\n value,\\n keccak256(data),\\n operation,\\n safeTxGas,\\n baseGas,\\n gasPrice,\\n gasToken,\\n refundReceiver,\\n _nonce\\n )\\n );\\n return abi.encodePacked(bytes1(0x19), bytes1(0x01), domainSeparator(), safeTxHash);\\n }\\n\\n /// @dev Returns hash to be signed by owners.\\n /// @param to Destination address.\\n /// @param value Ether value.\\n /// @param data Data payload.\\n /// @param operation Operation type.\\n /// @param safeTxGas Fas that should be used for the safe transaction.\\n /// @param baseGas Gas costs for data used to trigger the safe transaction.\\n /// @param gasPrice Maximum gas price that should be used for this transaction.\\n /// @param gasToken Token address (or 0 if ETH) that is used for the payment.\\n /// @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin).\\n /// @param _nonce Transaction nonce.\\n /// @return Transaction hash.\\n function getTransactionHash(\\n address to,\\n uint256 value,\\n bytes calldata data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address refundReceiver,\\n uint256 _nonce\\n ) public view returns (bytes32) {\\n return keccak256(encodeTransactionData(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, _nonce));\\n }\\n}\\n\",\"keccak256\":\"0x2ca9e3e053c969b9364f62c50c2c25b92525db7fd0bad3ae1fb0c20dd575367c\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/Executor.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\n\\n/// @title Executor - A contract that can execute transactions\\n/// @author Richard Meissner - \\ncontract Executor {\\n function execute(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 txGas\\n ) internal returns (bool success) {\\n if (operation == Enum.Operation.DelegateCall) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := delegatecall(txGas, to, add(data, 0x20), mload(data), 0, 0)\\n }\\n } else {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n success := call(txGas, to, value, add(data, 0x20), mload(data), 0, 0)\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4d3a900673473466bc27413fdbb11aae60b5580b792c49411f01544e0b24fe08\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/FallbackManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract FallbackManager is SelfAuthorized {\\n event ChangedFallbackHandler(address handler);\\n\\n // keccak256(\\\"fallback_manager.handler.address\\\")\\n bytes32 internal constant FALLBACK_HANDLER_STORAGE_SLOT = 0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5;\\n\\n function internalSetFallbackHandler(address handler) internal {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, handler)\\n }\\n }\\n\\n /// @dev Allows to add a contract to handle fallback calls.\\n /// Only fallback calls without value and with data will be forwarded.\\n /// This can only be done via a Safe transaction.\\n /// @param handler contract to handle fallbacks calls.\\n function setFallbackHandler(address handler) public authorized {\\n internalSetFallbackHandler(handler);\\n emit ChangedFallbackHandler(handler);\\n }\\n\\n // solhint-disable-next-line payable-fallback,no-complex-fallback\\n fallback() external {\\n bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let handler := sload(slot)\\n if iszero(handler) {\\n return(0, 0)\\n }\\n calldatacopy(0, 0, calldatasize())\\n // The msg.sender address is shifted to the left by 12 bytes to remove the padding\\n // Then the address without padding is stored right after the calldata\\n mstore(calldatasize(), shl(96, caller()))\\n // Add 20 bytes for the address appended add the end\\n let success := call(gas(), handler, 0, 0, add(calldatasize(), 20), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n if iszero(success) {\\n revert(0, returndatasize())\\n }\\n return(0, returndatasize())\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1be9f0f3e80a78134c2e3a026c6a14759785bd35d135e87a4a025aeb6742791f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/GuardManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\ninterface Guard {\\n function checkTransaction(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation,\\n uint256 safeTxGas,\\n uint256 baseGas,\\n uint256 gasPrice,\\n address gasToken,\\n address payable refundReceiver,\\n bytes memory signatures,\\n address msgSender\\n ) external;\\n\\n function checkAfterExecution(bytes32 txHash, bool success) external;\\n}\\n\\n/// @title Fallback Manager - A contract that manages fallback calls made to this contract\\n/// @author Richard Meissner - \\ncontract GuardManager is SelfAuthorized {\\n event ChangedGuard(address guard);\\n // keccak256(\\\"guard_manager.guard.address\\\")\\n bytes32 internal constant GUARD_STORAGE_SLOT = 0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8;\\n\\n /// @dev Set a guard that checks transactions before execution\\n /// @param guard The address of the guard to be used or the 0 address to disable the guard\\n function setGuard(address guard) external authorized {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n sstore(slot, guard)\\n }\\n emit ChangedGuard(guard);\\n }\\n\\n function getGuard() internal view returns (address guard) {\\n bytes32 slot = GUARD_STORAGE_SLOT;\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n guard := sload(slot)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x53a532a31f9632d5a73ad0df56f05bd2b66a2f781f571eb48d00367d370707f9\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/ModuleManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/Enum.sol\\\";\\nimport \\\"../common/SelfAuthorized.sol\\\";\\nimport \\\"./Executor.sol\\\";\\n\\n/// @title Module Manager - A contract that manages modules that can execute transactions via this contract\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract ModuleManager is SelfAuthorized, Executor {\\n event EnabledModule(address module);\\n event DisabledModule(address module);\\n event ExecutionFromModuleSuccess(address indexed module);\\n event ExecutionFromModuleFailure(address indexed module);\\n\\n address internal constant SENTINEL_MODULES = address(0x1);\\n\\n mapping(address => address) internal modules;\\n\\n function setupModules(address to, bytes memory data) internal {\\n require(modules[SENTINEL_MODULES] == address(0), \\\"GS100\\\");\\n modules[SENTINEL_MODULES] = SENTINEL_MODULES;\\n if (to != address(0))\\n // Setup has to complete successfully or transaction fails.\\n require(execute(to, 0, data, Enum.Operation.DelegateCall, gasleft()), \\\"GS000\\\");\\n }\\n\\n /// @dev Allows to add a module to the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Enables the module `module` for the Safe.\\n /// @param module Module to be whitelisted.\\n function enableModule(address module) public authorized {\\n // Module address cannot be null or sentinel.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n // Module cannot be added twice.\\n require(modules[module] == address(0), \\\"GS102\\\");\\n modules[module] = modules[SENTINEL_MODULES];\\n modules[SENTINEL_MODULES] = module;\\n emit EnabledModule(module);\\n }\\n\\n /// @dev Allows to remove a module from the whitelist.\\n /// This can only be done via a Safe transaction.\\n /// @notice Disables the module `module` for the Safe.\\n /// @param prevModule Module that pointed to the module to be removed in the linked list\\n /// @param module Module to be removed.\\n function disableModule(address prevModule, address module) public authorized {\\n // Validate module address and check that it corresponds to module index.\\n require(module != address(0) && module != SENTINEL_MODULES, \\\"GS101\\\");\\n require(modules[prevModule] == module, \\\"GS103\\\");\\n modules[prevModule] = modules[module];\\n modules[module] = address(0);\\n emit DisabledModule(module);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations.\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModule(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public virtual returns (bool success) {\\n // Only whitelisted modules are allowed.\\n require(msg.sender != SENTINEL_MODULES && modules[msg.sender] != address(0), \\\"GS104\\\");\\n // Execute transaction without further confirmations.\\n success = execute(to, value, data, operation, gasleft());\\n if (success) emit ExecutionFromModuleSuccess(msg.sender);\\n else emit ExecutionFromModuleFailure(msg.sender);\\n }\\n\\n /// @dev Allows a Module to execute a Safe transaction without any further confirmations and return data\\n /// @param to Destination address of module transaction.\\n /// @param value Ether value of module transaction.\\n /// @param data Data payload of module transaction.\\n /// @param operation Operation type of module transaction.\\n function execTransactionFromModuleReturnData(\\n address to,\\n uint256 value,\\n bytes memory data,\\n Enum.Operation operation\\n ) public returns (bool success, bytes memory returnData) {\\n success = execTransactionFromModule(to, value, data, operation);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // Load free memory location\\n let ptr := mload(0x40)\\n // We allocate memory for the return data by setting the free memory location to\\n // current free memory location + data size + 32 bytes for data size value\\n mstore(0x40, add(ptr, add(returndatasize(), 0x20)))\\n // Store the size\\n mstore(ptr, returndatasize())\\n // Store the data\\n returndatacopy(add(ptr, 0x20), 0, returndatasize())\\n // Point the return data to the correct memory location\\n returnData := ptr\\n }\\n }\\n\\n /// @dev Returns if an module is enabled\\n /// @return True if the module is enabled\\n function isModuleEnabled(address module) public view returns (bool) {\\n return SENTINEL_MODULES != module && modules[module] != address(0);\\n }\\n\\n /// @dev Returns array of modules.\\n /// @param start Start of the page.\\n /// @param pageSize Maximum number of modules that should be returned.\\n /// @return array Array of modules.\\n /// @return next Start of the next page.\\n function getModulesPaginated(address start, uint256 pageSize) external view returns (address[] memory array, address next) {\\n // Init array with max page size\\n array = new address[](pageSize);\\n\\n // Populate return array\\n uint256 moduleCount = 0;\\n address currentModule = modules[start];\\n while (currentModule != address(0x0) && currentModule != SENTINEL_MODULES && moduleCount < pageSize) {\\n array[moduleCount] = currentModule;\\n currentModule = modules[currentModule];\\n moduleCount++;\\n }\\n next = currentModule;\\n // Set correct size of returned array\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n mstore(array, moduleCount)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5512760a0328309f82a71cbe2ac14e0942501b9d44d5fb417bd02174546672e5\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/base/OwnerManager.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\nimport \\\"../common/SelfAuthorized.sol\\\";\\n\\n/// @title OwnerManager - Manages a set of owners and a threshold to perform actions.\\n/// @author Stefan George - \\n/// @author Richard Meissner - \\ncontract OwnerManager is SelfAuthorized {\\n event AddedOwner(address owner);\\n event RemovedOwner(address owner);\\n event ChangedThreshold(uint256 threshold);\\n\\n address internal constant SENTINEL_OWNERS = address(0x1);\\n\\n mapping(address => address) internal owners;\\n uint256 internal ownerCount;\\n uint256 internal threshold;\\n\\n /// @dev Setup function sets initial storage of contract.\\n /// @param _owners List of Safe owners.\\n /// @param _threshold Number of required confirmations for a Safe transaction.\\n function setupOwners(address[] memory _owners, uint256 _threshold) internal {\\n // Threshold can only be 0 at initialization.\\n // Check ensures that setup function can only be called once.\\n require(threshold == 0, \\\"GS200\\\");\\n // Validate that threshold is smaller than number of added owners.\\n require(_threshold <= _owners.length, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n // Initializing Safe owners.\\n address currentOwner = SENTINEL_OWNERS;\\n for (uint256 i = 0; i < _owners.length; i++) {\\n // Owner address cannot be null.\\n address owner = _owners[i];\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this) && currentOwner != owner, \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[currentOwner] = owner;\\n currentOwner = owner;\\n }\\n owners[currentOwner] = SENTINEL_OWNERS;\\n ownerCount = _owners.length;\\n threshold = _threshold;\\n }\\n\\n /// @dev Allows to add a new owner to the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.\\n /// @param owner New owner address.\\n /// @param _threshold New threshold.\\n function addOwnerWithThreshold(address owner, uint256 _threshold) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(owner != address(0) && owner != SENTINEL_OWNERS && owner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[owner] == address(0), \\\"GS204\\\");\\n owners[owner] = owners[SENTINEL_OWNERS];\\n owners[SENTINEL_OWNERS] = owner;\\n ownerCount++;\\n emit AddedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to remove an owner from the Safe and update the threshold at the same time.\\n /// This can only be done via a Safe transaction.\\n /// @notice Removes the owner `owner` from the Safe and updates the threshold to `_threshold`.\\n /// @param prevOwner Owner that pointed to the owner to be removed in the linked list\\n /// @param owner Owner address to be removed.\\n /// @param _threshold New threshold.\\n function removeOwner(\\n address prevOwner,\\n address owner,\\n uint256 _threshold\\n ) public authorized {\\n // Only allow to remove an owner, if threshold can still be reached.\\n require(ownerCount - 1 >= _threshold, \\\"GS201\\\");\\n // Validate owner address and check that it corresponds to owner index.\\n require(owner != address(0) && owner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == owner, \\\"GS205\\\");\\n owners[prevOwner] = owners[owner];\\n owners[owner] = address(0);\\n ownerCount--;\\n emit RemovedOwner(owner);\\n // Change threshold if threshold was changed.\\n if (threshold != _threshold) changeThreshold(_threshold);\\n }\\n\\n /// @dev Allows to swap/replace an owner from the Safe with another address.\\n /// This can only be done via a Safe transaction.\\n /// @notice Replaces the owner `oldOwner` in the Safe with `newOwner`.\\n /// @param prevOwner Owner that pointed to the owner to be replaced in the linked list\\n /// @param oldOwner Owner address to be replaced.\\n /// @param newOwner New owner address.\\n function swapOwner(\\n address prevOwner,\\n address oldOwner,\\n address newOwner\\n ) public authorized {\\n // Owner address cannot be null, the sentinel or the Safe itself.\\n require(newOwner != address(0) && newOwner != SENTINEL_OWNERS && newOwner != address(this), \\\"GS203\\\");\\n // No duplicate owners allowed.\\n require(owners[newOwner] == address(0), \\\"GS204\\\");\\n // Validate oldOwner address and check that it corresponds to owner index.\\n require(oldOwner != address(0) && oldOwner != SENTINEL_OWNERS, \\\"GS203\\\");\\n require(owners[prevOwner] == oldOwner, \\\"GS205\\\");\\n owners[newOwner] = owners[oldOwner];\\n owners[prevOwner] = newOwner;\\n owners[oldOwner] = address(0);\\n emit RemovedOwner(oldOwner);\\n emit AddedOwner(newOwner);\\n }\\n\\n /// @dev Allows to update the number of required confirmations by Safe owners.\\n /// This can only be done via a Safe transaction.\\n /// @notice Changes the threshold of the Safe to `_threshold`.\\n /// @param _threshold New threshold.\\n function changeThreshold(uint256 _threshold) public authorized {\\n // Validate that threshold is smaller than number of owners.\\n require(_threshold <= ownerCount, \\\"GS201\\\");\\n // There has to be at least one Safe owner.\\n require(_threshold >= 1, \\\"GS202\\\");\\n threshold = _threshold;\\n emit ChangedThreshold(threshold);\\n }\\n\\n function getThreshold() public view returns (uint256) {\\n return threshold;\\n }\\n\\n function isOwner(address owner) public view returns (bool) {\\n return owner != SENTINEL_OWNERS && owners[owner] != address(0);\\n }\\n\\n /// @dev Returns array of owners.\\n /// @return Array of Safe owners.\\n function getOwners() public view returns (address[] memory) {\\n address[] memory array = new address[](ownerCount);\\n\\n // populate return array\\n uint256 index = 0;\\n address currentOwner = owners[SENTINEL_OWNERS];\\n while (currentOwner != SENTINEL_OWNERS) {\\n array[index] = currentOwner;\\n currentOwner = owners[currentOwner];\\n index++;\\n }\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x01a3d64cc0967f42ae63802409f5404d18352516ea2a6335005003d919ffcf12\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Enum.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Enum - Collection of enums\\n/// @author Richard Meissner - \\ncontract Enum {\\n enum Operation {Call, DelegateCall}\\n}\\n\",\"keccak256\":\"0x473e45b1a5cc47be494b0e123c9127f0c11c1e0992a321ae5a644c0bfdb2c14f\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/EtherPaymentFallback.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments\\n/// @author Richard Meissner - \\ncontract EtherPaymentFallback {\\n event SafeReceived(address indexed sender, uint256 value);\\n\\n /// @dev Fallback function accepts Ether transactions.\\n receive() external payable {\\n emit SafeReceived(msg.sender, msg.value);\\n }\\n}\\n\",\"keccak256\":\"0x1a7928d29877da84a3d0df846d5cd933d48ee095c1bde0aa044e249b12e27a72\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SecuredTokenTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SecuredTokenTransfer - Secure token transfer\\n/// @author Richard Meissner - \\ncontract SecuredTokenTransfer {\\n /// @dev Transfers a token and returns if it was a success\\n /// @param token Token that should be transferred\\n /// @param receiver Receiver to whom the token should be transferred\\n /// @param amount The amount of tokens that should be transferred\\n function transferToken(\\n address token,\\n address receiver,\\n uint256 amount\\n ) internal returns (bool transferred) {\\n // 0xa9059cbb - keccack(\\\"transfer(address,uint256)\\\")\\n bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n // We write the return value to scratch space.\\n // See https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory\\n let success := call(sub(gas(), 10000), token, 0, add(data, 0x20), mload(data), 0, 0x20)\\n switch returndatasize()\\n case 0 {\\n transferred := success\\n }\\n case 0x20 {\\n transferred := iszero(or(iszero(success), iszero(mload(0))))\\n }\\n default {\\n transferred := 0\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x178682d8477da42936c7e8e24d39094c4ac08ecd8623794b9535d77001b665f1\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SelfAuthorized.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SelfAuthorized - authorizes current contract to perform actions\\n/// @author Richard Meissner - \\ncontract SelfAuthorized {\\n function requireSelfCall() private view {\\n require(msg.sender == address(this), \\\"GS031\\\");\\n }\\n\\n modifier authorized() {\\n // This is a function call as it minimized the bytecode size\\n requireSelfCall();\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x59d36efca578b75541a776f62a0d0ef03712fc27b6647c3915c14b572106d7bc\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/SignatureDecoder.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title SignatureDecoder - Decodes signatures that a encoded as bytes\\n/// @author Richard Meissner - \\ncontract SignatureDecoder {\\n /// @dev divides bytes signature into `uint8 v, bytes32 r, bytes32 s`.\\n /// @notice Make sure to peform a bounds check for @param pos, to avoid out of bounds access on @param signatures\\n /// @param pos which signature to read. A prior bounds check of this parameter should be performed, to avoid out of bounds access\\n /// @param signatures concatenated rsv signatures\\n function signatureSplit(bytes memory signatures, uint256 pos)\\n internal\\n pure\\n returns (\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n )\\n {\\n // The signature format is a compact form of:\\n // {bytes32 r}{bytes32 s}{uint8 v}\\n // Compact means, uint8 is not padded to 32 bytes.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let signaturePos := mul(0x41, pos)\\n r := mload(add(signatures, add(signaturePos, 0x20)))\\n s := mload(add(signatures, add(signaturePos, 0x40)))\\n // Here we are loading the last 32 bytes, including 31 bytes\\n // of 's'. There is no 'mload8' to do this.\\n //\\n // 'byte' is not working due to the Solidity parser, so lets\\n // use the second best option, 'and'\\n v := and(mload(add(signatures, add(signaturePos, 0x41))), 0xff)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2d37be182472ccfee62a33e9939f9b3d509be4c32e9fdebc2c1746c573655987\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/Singleton.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title Singleton - Base for singleton contracts (should always be first super contract)\\n/// This contract is tightly coupled to our proxy contract (see `proxies/GnosisSafeProxy.sol`)\\n/// @author Richard Meissner - \\ncontract Singleton {\\n // singleton always needs to be first declared variable, to ensure that it is at the same location as in the Proxy contract.\\n // It should also always be ensured that the address is stored alone (uses a full word)\\n address private singleton;\\n}\\n\",\"keccak256\":\"0x6e02c18998de8834dd7d69890cb6ede996b6f635d2337081a596d91e35e2c648\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/common/StorageAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/// @title StorageAccessible - generic base contract that allows callers to access all internal storage.\\n/// @notice See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol\\ncontract StorageAccessible {\\n /**\\n * @dev Reads `length` bytes of storage in the currents contract\\n * @param offset - the offset in the current contract's storage in words to start reading from\\n * @param length - the number of words (32 bytes) of data to read\\n * @return the bytes that were read.\\n */\\n function getStorageAt(uint256 offset, uint256 length) public view returns (bytes memory) {\\n bytes memory result = new bytes(length * 32);\\n for (uint256 index = 0; index < length; index++) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let word := sload(add(offset, index))\\n mstore(add(add(result, 0x20), mul(index, 0x20)), word)\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Performs a delegetecall on a targetContract in the context of self.\\n * Internally reverts execution to avoid side effects (making it static).\\n *\\n * This method reverts with data equal to `abi.encode(bool(success), bytes(response))`.\\n * Specifically, the `returndata` after a call to this method will be:\\n * `success:bool || response.length:uint256 || response:bytes`.\\n *\\n * @param targetContract Address of the contract containing the code to execute.\\n * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).\\n */\\n function simulateAndRevert(address targetContract, bytes memory calldataPayload) external {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let success := delegatecall(gas(), targetContract, add(calldataPayload, 0x20), mload(calldataPayload), 0, 0)\\n\\n mstore(0x00, success)\\n mstore(0x20, returndatasize())\\n returndatacopy(0x40, 0, returndatasize())\\n revert(0, add(returndatasize(), 0x40))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x36853adb266c2ab7d3c612aca799441a86bd15d9e1d24fc6c70d63f5c2df3aaf\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/external/GnosisSafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\n/**\\n * @title GnosisSafeMath\\n * @dev Math operations with safety checks that revert on error\\n * Renamed from SafeMath to GnosisSafeMath to avoid conflicts\\n * TODO: remove once open zeppelin update to solc 0.5.0\\n */\\nlibrary GnosisSafeMath {\\n /**\\n * @dev Multiplies two numbers, reverts on overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Adds two numbers, reverts on overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n}\\n\",\"keccak256\":\"0x2a2b4d74f5834a9437be0cd3254d7a676698fc78aa47941c2009470196998d98\",\"license\":\"LGPL-3.0-only\"},\"contracts/vendor/@gnosis.pm/safe-contracts@1.3.0/contracts/interfaces/ISignatureValidator.sol\":{\"content\":\"// SPDX-License-Identifier: LGPL-3.0-only\\npragma solidity >=0.7.0 <0.9.0;\\n\\ncontract ISignatureValidatorConstants {\\n // bytes4(keccak256(\\\"isValidSignature(bytes,bytes)\\\")\\n bytes4 internal constant EIP1271_MAGIC_VALUE = 0x20c13b0b;\\n}\\n\\nabstract contract ISignatureValidator is ISignatureValidatorConstants {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param _data Arbitrary length data signed on the behalf of address(this)\\n * @param _signature Signature byte array associated with _data\\n *\\n * MUST return the bytes4 magic value 0x20c13b0b when function passes.\\n * MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5)\\n * MUST allow external calls\\n */\\n function isValidSignature(bytes memory _data, bytes memory _signature) public view virtual returns (bytes4);\\n}\\n\",\"keccak256\":\"0x5b6e9bf17f28738ce88e751f420b0559f5151ba7bec2ff3c7bb31e42673d6801\",\"license\":\"LGPL-3.0-only\"}},\"version\":1}", - "bytecode": "0x60806040523480156200001157600080fd5b506040516200365738038062003657833981016040819052620000349162000461565b6000600455620000458282620000b8565b60408051602081019091526000808252908190620000648282620002fe565b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a886868587604051620000a594939291906200053b565b60405180910390a25050505050620005fd565b60045415620000f65760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b60448201526064015b60405180910390fd5b8151811115620001315760405162461bcd60e51b8152602060048201526005602482015264475332303160d81b6044820152606401620000ed565b60018110156200016c5760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401620000ed565b600160005b8351811015620002cb576000848281518110620001925762000192620005a7565b6020026020010151905060006001600160a01b0316816001600160a01b031614158015620001ca57506001600160a01b038116600114155b8015620001e057506001600160a01b0381163014155b8015620001ff5750806001600160a01b0316836001600160a01b031614155b620002355760405162461bcd60e51b8152602060048201526005602482015264475332303360d81b6044820152606401620000ed565b6001600160a01b038181166000908152600260205260409020541615620002875760405162461bcd60e51b815260206004820152600560248201526411d4cc8c0d60da1b6044820152606401620000ed565b6001600160a01b03928316600090815260026020526040902080546001600160a01b0319169382169390931790925580620002c281620005bd565b91505062000171565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b6001600081905260205260008051602062003637833981519152546001600160a01b031615620003595760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401620000ed565b6001600081905260208190526000805160206200363783398151915280546001600160a01b03191690911790556001600160a01b03821615620003dd57620003a78260008360015a620003e1565b620003dd5760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401620000ed565b5050565b60006001836001811115620003fa57620003fa620005e7565b141562000415576000808551602087018986f4905062000425565b600080855160208701888a87f190505b95945050505050565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045c57600080fd5b919050565b600080604083850312156200047557600080fd5b82516001600160401b03808211156200048d57600080fd5b818501915085601f830112620004a257600080fd5b8151602082821115620004b957620004b96200042e565b8160051b604051601f19603f83011681018181108682111715620004e157620004e16200042e565b6040529283528183019350848101820192898411156200050057600080fd5b948201945b838610156200052957620005198662000444565b8552948201949382019362000505565b97909101519698969750505050505050565b6080808252855190820181905260009060209060a0840190828901845b828110156200057f5781516001600160a01b03168452928401929084019060010162000558565b50505090830195909552506001600160a01b0392831660408201529116606090910152919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620005e057634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052602160045260246000fd5b61302a806200060d6000396000f3fe6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033cc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f", - "deployedBytecode": "0x6080604052600436106101dc5760003560e01c8063affed0e011610102578063e19a9dd911610095578063f08a032311610064578063f08a032314610620578063f698da2514610640578063f8dc5dd914610655578063ffa1ad741461067557610218565b8063e19a9dd9146105ab578063e318b52b146105cb578063e75235b8146105eb578063e86637db1461060057610218565b8063cc2f8452116100d1578063cc2f84521461051d578063d4d9bdcd1461054b578063d8d11f781461056b578063e009cfde1461058b57610218565b8063affed0e0146104a7578063b4faba09146104bd578063b63e800d146104dd578063c4ca3a9c146104fd57610218565b80635624b25b1161017a5780636a761202116101495780636a7612021461041a5780637d8329741461042d578063934f3a1114610465578063a0e67e2b1461048557610218565b80635624b25b146103805780635ae6bd37146103ad578063610b5925146103da578063694e80c3146103fa57610218565b80632f54bf6e116101b65780632f54bf6e146102f55780633408e47014610315578063468721a7146103325780635229073f1461035257610218565b80630d582f131461027e57806312fb68e0146102a05780632d9ad53d146102c057610218565b366102185760405134815233907f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d9060200160405180910390a2005b34801561022457600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d580548061024f57005b36600080373360601b365260008060143601600080855af190503d6000803e80610278573d6000fd5b503d6000f35b34801561028a57600080fd5b5061029e61029936600461249d565b6106a6565b005b3480156102ac57600080fd5b5061029e6102bb36600461256b565b610806565b3480156102cc57600080fd5b506102e06102db3660046125df565b610c6e565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b506102e06103103660046125df565b610ca9565b34801561032157600080fd5b50465b6040519081526020016102ec565b34801561033e57600080fd5b506102e061034d36600461260b565b610ce1565b34801561035e57600080fd5b5061037261036d36600461260b565b610db8565b6040516102ec9291906126c1565b34801561038c57600080fd5b506103a061039b3660046126dc565b610dee565b6040516102ec91906126fe565b3480156103b957600080fd5b506103246103c8366004612711565b60076020526000908152604090205481565b3480156103e657600080fd5b5061029e6103f53660046125df565b610e73565b34801561040657600080fd5b5061029e610415366004612711565b610fb5565b6102e0610428366004612772565b61104d565b34801561043957600080fd5b5061032461044836600461249d565b600860209081526000928352604080842090915290825290205481565b34801561047157600080fd5b5061029e61048036600461284a565b611396565b34801561049157600080fd5b5061049a6113e0565b6040516102ec91906128fa565b3480156104b357600080fd5b5061032460055481565b3480156104c957600080fd5b5061029e6104d836600461290d565b6114d0565b3480156104e957600080fd5b5061029e6104f836600461295c565b6114f3565b34801561050957600080fd5b50610324610518366004612a50565b611614565b34801561052957600080fd5b5061053d61053836600461249d565b6116ae565b6040516102ec929190612ac0565b34801561055757600080fd5b5061029e610566366004612711565b6117a7565b34801561057757600080fd5b50610324610586366004612aea565b61183c565b34801561059757600080fd5b5061029e6105a6366004612baa565b611869565b3480156105b757600080fd5b5061029e6105c63660046125df565b611998565b3480156105d757600080fd5b5061029e6105e6366004612be3565b6119fd565b3480156105f757600080fd5b50600454610324565b34801561060c57600080fd5b506103a061061b366004612aea565b611bec565b34801561062c57600080fd5b5061029e61063b3660046125df565b611cc5565b34801561064c57600080fd5b50610324611d2e565b34801561066157600080fd5b5061029e610670366004612c2e565b611d85565b34801561068157600080fd5b506103a0604051806040016040528060058152602001640312e332e360dc1b81525081565b6106ae611ef8565b6001600160a01b038216158015906106d057506001600160a01b038216600114155b80156106e557506001600160a01b0382163014155b61070a5760405162461bcd60e51b815260040161070190612c6f565b60405180910390fd5b6001600160a01b0382811660009081526002602052604090205416156107425760405162461bcd60e51b815260040161070190612c8e565b60026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e080546001600160a01b038481166000818152604081208054939094166001600160a01b0319938416179093556001835283549091161790915560038054916107af83612cc3565b90915550506040516001600160a01b03831681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a180600454146108025761080281610fb5565b5050565b610811816041611f31565b825110156108495760405162461bcd60e51b8152602060048201526005602482015264047533032360dc1b6044820152606401610701565b6000808060008060005b86811015610c62576041818102890160208101516040820151919092015160ff169550909350915083610a20579193508391610890876041611f31565b8210156108c75760405162461bcd60e51b8152602060048201526005602482015264475330323160d81b6044820152606401610701565b87516108d4836020611f6a565b111561090a5760405162461bcd60e51b815260206004820152600560248201526423a998191960d91b6044820152606401610701565b60208289018101518951909161092d908390610927908790611f6a565b90611f6a565b11156109635760405162461bcd60e51b8152602060048201526005602482015264475330323360d81b6044820152606401610701565b6040516320c13b0b60e01b8082528a8501602001916001600160a01b038916906320c13b0b90610999908f908690600401612cde565b602060405180830381865afa1580156109b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109da9190612d03565b6001600160e01b03191614610a195760405162461bcd60e51b815260206004820152600560248201526411d4cc0c8d60da1b6044820152606401610701565b5050610bc8565b8360ff1660011415610aa3579193508391336001600160a01b0384161480610a6a57506001600160a01b03851660009081526008602090815260408083208d845290915290205415155b610a9e5760405162461bcd60e51b8152602060048201526005602482015264475330323560d81b6044820152606401610701565b610bc8565b601e8460ff161115610b68576040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018b9052600190605c0160405160208183030381529060405280519060200120600486610b089190612d2d565b6040805160008152602081018083529390935260ff90911690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610b57573d6000803e3d6000fd5b505050602060405103519450610bc8565b6040805160008152602081018083528c905260ff861691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa158015610bbb573d6000803e3d6000fd5b5050506020604051035194505b856001600160a01b0316856001600160a01b0316118015610c0257506001600160a01b038581166000908152600260205260409020541615155b8015610c1857506001600160a01b038516600114155b610c4c5760405162461bcd60e51b815260206004820152600560248201526423a998191b60d91b6044820152606401610701565b8495508080610c5a90612cc3565b915050610853565b50505050505050505050565b600060016001600160a01b03831614801590610ca357506001600160a01b038281166000908152600160205260409020541615155b92915050565b60006001600160a01b038216600114801590610ca35750506001600160a01b0390811660009081526002602052604090205416151590565b600033600114801590610d0b5750336000908152600160205260409020546001600160a01b031615155b610d3f5760405162461bcd60e51b815260206004820152600560248201526411d4cc4c0d60da1b6044820152606401610701565b610d4c858585855a611f86565b90508015610d845760405133907f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb890600090a2610db0565b60405133907facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37590600090a25b949350505050565b60006060610dc886868686610ce1565b915060405160203d0181016040523d81523d6000602083013e8091505094509492505050565b60606000610dfd836020612d50565b6001600160401b03811115610e1457610e146124c9565b6040519080825280601f01601f191660200182016040528015610e3e576020820181803683370190505b50905060005b83811015610e6b578481015460208083028401015280610e6381612cc3565b915050610e44565b509392505050565b610e7b611ef8565b6001600160a01b03811615801590610e9d57506001600160a01b038116600114155b610ed15760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b038181166000908152600160205260409020541615610f215760405162461bcd60e51b815260206004820152600560248201526423a998981960d91b6044820152606401610701565b600160208181527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03858116600081815260408082208054949095166001600160a01b031994851617909455959095528254168417909155519182527fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844091015b60405180910390a150565b610fbd611ef8565b600354811115610fdf5760405162461bcd60e51b815260040161070190612d6f565b60018110156110185760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b60048190556040518181527f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c9390602001610faa565b60008060006110678e8e8e8e8e8e8e8e8e8e600554611bec565b60058054919250600061107983612cc3565b9091555050805160208201209150611092828286611396565b5060006110bd7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c85490565b90506001600160a01b0381161561114357806001600160a01b03166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b81526004016111109c9b9a99989796959493929190612dc6565b600060405180830381600087803b15801561112a57600080fd5b505af115801561113e573d6000803e3d6000fd5b505050505b61116f6111528a6109c4612e8b565b603f61115f8c6040612d50565b6111699190612ea3565b90611fce565b61117b906101f4612e8b565b5a10156111b25760405162461bcd60e51b8152602060048201526005602482015264047533031360dc1b6044820152606401610701565b60005a90506112238f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e8c600014611210578e611f86565b6109c45a61121e9190612ec5565b611f86565b93506112305a8290611fe5565b9050838061123d57508915155b8061124757508715155b61127b5760405162461bcd60e51b8152602060048201526005602482015264475330313360d81b6044820152606401610701565b6000881561129357611290828b8b8b8b612000565b90505b84156112d75760408051858152602081018390527f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e910160405180910390a1611311565b60408051858152602081018390527f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23910160405180910390a15b50506001600160a01b0381161561138557604051631264e26d60e31b81526004810183905283151560248201526001600160a01b03821690639327136890604401600060405180830381600087803b15801561136c57600080fd5b505af1158015611380573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b600454806113ce5760405162461bcd60e51b8152602060048201526005602482015264475330303160d81b6044820152606401610701565b6113da84848484610806565b50505050565b606060006003546001600160401b038111156113fe576113fe6124c9565b604051908082528060200260200182016040528015611427578160200160208202803683370190505b506001600090815260026020527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e054919250906001600160a01b03165b6001600160a01b0381166001146114c8578083838151811061148857611488612edc565b6001600160a01b039283166020918202929092018101919091529181166000908152600290925260409091205416816114c081612cc3565b925050611464565b509092915050565b600080825160208401855af480600052503d6020523d600060403e60403d016000fd5b6115318a8a808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508c9250612106915050565b6001600160a01b0384161561156857611568847f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6115a88787878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506122ec92505050565b81156115bf576115bd82600060018685612000565b505b336001600160a01b03167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b89604051611600959493929190612ef2565b60405180910390a250505050505050505050565b6000805a905061165d878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525089925050505a611f86565b61166657600080fd5b60005a6116739083612ec5565b90508060405160200161168891815260200190565b60408051601f198184030181529082905262461bcd60e51b8252610701916004016126fe565b60606000826001600160401b038111156116ca576116ca6124c9565b6040519080825280602002602001820160405280156116f3578160200160208202803683370190505b506001600160a01b0380861660009081526001602052604081205492945091165b6001600160a01b0381161580159061173657506001600160a01b038116600114155b801561174157508482105b15611799578084838151811061175957611759612edc565b6001600160a01b0392831660209182029290920181019190915291811660009081526001909252604090912054168161179181612cc3565b925050611714565b908352919491935090915050565b336000908152600260205260409020546001600160a01b03166117f45760405162461bcd60e51b8152602060048201526005602482015264047533033360dc1b6044820152606401610701565b336000818152600860209081526040808320858452909152808220600190555183917ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c91a350565b60006118518c8c8c8c8c8c8c8c8c8c8c611bec565b8051906020012090509b9a5050505050505050505050565b611871611ef8565b6001600160a01b0381161580159061189357506001600160a01b038116600114155b6118c75760405162461bcd60e51b8152602060048201526005602482015264475331303160d81b6044820152606401610701565b6001600160a01b0382811660009081526001602052604090205481169082161461191b5760405162461bcd60e51b8152602060048201526005602482015264475331303360d81b6044820152606401610701565b6001600160a01b038181166000818152600160209081526040808320805488871685528285208054919097166001600160a01b03199182161790965592849052825490941690915591519081527faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427691015b60405180910390a15050565b6119a0611ef8565b7f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c88181556040516001600160a01b03831681527f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa29060200161198c565b611a05611ef8565b6001600160a01b03811615801590611a2757506001600160a01b038116600114155b8015611a3c57506001600160a01b0381163014155b611a585760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b038181166000908152600260205260409020541615611a905760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03821615801590611ab257506001600160a01b038216600114155b611ace5760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611b225760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b038281166000818152600260209081526040808320805487871680865283862080549289166001600160a01b0319938416179055968a1685528285208054821690971790965592849052825490941690915591519081527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf910160405180910390a16040516001600160a01b03821681527f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea269060200160405180910390a1505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d604051611c26929190612f5e565b604051908190038120611c4c949392918e908e908e908e908e908e908e90602001612f6e565b60408051601f1981840301815291905280516020909101209050601960f81b600160f81b611c78611d2e565b6040516001600160f81b031993841660208201529290911660218301526022820152604281018290526062016040516020818303038152906040529150509b9a5050505050505050505050565b611ccd611ef8565b611cf5817f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d555565b6040516001600160a01b03821681527f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b090602001610faa565b60007f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a794692184660408051602081019390935282015230606082015260800160405160208183030381529060405280519060200120905090565b611d8d611ef8565b806001600354611d9d9190612ec5565b1015611dbb5760405162461bcd60e51b815260040161070190612d6f565b6001600160a01b03821615801590611ddd57506001600160a01b038216600114155b611df95760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b03838116600090815260026020526040902054811690831614611e4d5760405162461bcd60e51b8152602060048201526005602482015264475332303560d81b6044820152606401610701565b6001600160a01b03828116600081815260026020526040808220805488861684529183208054929095166001600160a01b03199283161790945591815282549091169091556003805491611ea083612fdd565b90915550506040516001600160a01b03831681527ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf9060200160405180910390a18060045414611ef357611ef381610fb5565b505050565b333014611f2f5760405162461bcd60e51b8152602060048201526005602482015264475330333160d81b6044820152606401610701565b565b600082611f4057506000610ca3565b6000611f4c8385612d50565b905082611f598583612ea3565b14611f6357600080fd5b9392505050565b600080611f778385612e8b565b905083811015611f6357600080fd5b60006001836001811115611f9c57611f9c612d8e565b1415611fb5576000808551602087018986f49050611fc5565b600080855160208701888a87f190505b95945050505050565b600081831015611fde5781611f63565b5090919050565b600082821115611ff457600080fd5b6000610db08385612ec5565b6000806001600160a01b03831615612018578261201a565b325b90506001600160a01b0384166120ad5761204c3a861061203a573a61203c565b855b6120468989611f6a565b90611f31565b6040519092506001600160a01b0382169083156108fc029084906000818181858888f193505050506120a85760405162461bcd60e51b8152602060048201526005602482015264475330313160d81b6044820152606401610701565b6120fc565b6120bb856120468989611f6a565b91506120c88482846123e6565b6120fc5760405162461bcd60e51b815260206004820152600560248201526423a998189960d91b6044820152606401610701565b5095945050505050565b6004541561213e5760405162461bcd60e51b8152602060048201526005602482015264047533230360dc1b6044820152606401610701565b815181111561215f5760405162461bcd60e51b815260040161070190612d6f565b60018110156121985760405162461bcd60e51b815260206004820152600560248201526423a999181960d91b6044820152606401610701565b600160005b83518110156122b95760008482815181106121ba576121ba612edc565b6020026020010151905060006001600160a01b0316816001600160a01b0316141580156121f157506001600160a01b038116600114155b801561220657506001600160a01b0381163014155b80156122245750806001600160a01b0316836001600160a01b031614155b6122405760405162461bcd60e51b815260040161070190612c6f565b6001600160a01b0381811660009081526002602052604090205416156122785760405162461bcd60e51b815260040161070190612c8e565b6001600160a01b03928316600090815260026020526040902080546001600160a01b03191693821693909317909255806122b181612cc3565b91505061219d565b506001600160a01b0316600090815260026020526040902080546001600160a01b03191660011790559051600355600455565b600160008190526020527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f546001600160a01b0316156123565760405162461bcd60e51b8152602060048201526005602482015264047533130360dc1b6044820152606401610701565b6001600081905260208190527fcc69885fda6bcc1a4ace058b4a62bf5e179ea78fd58a1ccd71c22cc9b688792f80546001600160a01b03191690911790556001600160a01b03821615610802576123b28260008360015a611f86565b6108025760405162461bcd60e51b8152602060048201526005602482015264047533030360dc1b6044820152606401610701565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b1781528251600093929184919082896127105a03f13d80156124585760208114612460576000935061246b565b81935061246b565b600051158215171593505b5050509392505050565b6001600160a01b038116811461248a57600080fd5b50565b803561249881612475565b919050565b600080604083850312156124b057600080fd5b82356124bb81612475565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126124f057600080fd5b81356001600160401b038082111561250a5761250a6124c9565b604051601f8301601f19908116603f01168101908282118183101715612532576125326124c9565b8160405283815286602085880101111561254b57600080fd5b836020870160208301376000602085830101528094505050505092915050565b6000806000806080858703121561258157600080fd5b8435935060208501356001600160401b038082111561259f57600080fd5b6125ab888389016124df565b945060408701359150808211156125c157600080fd5b506125ce878288016124df565b949793965093946060013593505050565b6000602082840312156125f157600080fd5b8135611f6381612475565b80356002811061249857600080fd5b6000806000806080858703121561262157600080fd5b843561262c81612475565b93506020850135925060408501356001600160401b0381111561264e57600080fd5b61265a878288016124df565b925050612669606086016125fc565b905092959194509250565b6000815180845260005b8181101561269a5760208185018101518683018201520161267e565b818111156126ac576000602083870101525b50601f01601f19169290920160200192915050565b8215158152604060208201526000610db06040830184612674565b600080604083850312156126ef57600080fd5b50508035926020909101359150565b602081526000611f636020830184612674565b60006020828403121561272357600080fd5b5035919050565b60008083601f84011261273c57600080fd5b5081356001600160401b0381111561275357600080fd5b60208301915083602082850101111561276b57600080fd5b9250929050565b60008060008060008060008060008060006101408c8e03121561279457600080fd5b61279d8c61248d565b9a5060208c013599506001600160401b038060408e013511156127bf57600080fd5b6127cf8e60408f01358f0161272a565b909a5098506127e060608e016125fc565b975060808d0135965060a08d0135955060c08d0135945061280360e08e0161248d565b93506128126101008e0161248d565b9250806101208e0135111561282657600080fd5b506128388d6101208e01358e016124df565b90509295989b509295989b9093969950565b60008060006060848603121561285f57600080fd5b8335925060208401356001600160401b038082111561287d57600080fd5b612889878388016124df565b9350604086013591508082111561289f57600080fd5b506128ac868287016124df565b9150509250925092565b600081518084526020808501945080840160005b838110156128ef5781516001600160a01b0316875295820195908201906001016128ca565b509495945050505050565b602081526000611f6360208301846128b6565b6000806040838503121561292057600080fd5b823561292b81612475565b915060208301356001600160401b0381111561294657600080fd5b612952858286016124df565b9150509250929050565b6000806000806000806000806000806101008b8d03121561297c57600080fd5b8a356001600160401b038082111561299357600080fd5b818d0191508d601f8301126129a757600080fd5b8135818111156129b657600080fd5b8e60208260051b85010111156129cb57600080fd5b60208381019d50909b508d013599506129e660408e0161248d565b985060608d01359150808211156129fc57600080fd5b50612a098d828e0161272a565b9097509550612a1c905060808c0161248d565b9350612a2a60a08c0161248d565b925060c08b01359150612a3f60e08c0161248d565b90509295989b9194979a5092959850565b600080600080600060808688031215612a6857600080fd5b8535612a7381612475565b94506020860135935060408601356001600160401b03811115612a9557600080fd5b612aa18882890161272a565b9094509250612ab49050606087016125fc565b90509295509295909350565b604081526000612ad360408301856128b6565b905060018060a01b03831660208301529392505050565b60008060008060008060008060008060006101408c8e031215612b0c57600080fd5b8b35612b1781612475565b9a5060208c0135995060408c01356001600160401b03811115612b3957600080fd5b612b458e828f0161272a565b909a509850612b58905060608d016125fc565b965060808c0135955060a08c0135945060c08c0135935060e08c0135612b7d81612475565b92506101008c0135612b8e81612475565b809250506101208c013590509295989b509295989b9093969950565b60008060408385031215612bbd57600080fd5b8235612bc881612475565b91506020830135612bd881612475565b809150509250929050565b600080600060608486031215612bf857600080fd5b8335612c0381612475565b92506020840135612c1381612475565b91506040840135612c2381612475565b809150509250925092565b600080600060608486031215612c4357600080fd5b8335612c4e81612475565b92506020840135612c5e81612475565b929592945050506040919091013590565b602080825260059082015264475332303360d81b604082015260600190565b60208082526005908201526411d4cc8c0d60da1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612cd757612cd7612cad565b5060010190565b604081526000612cf16040830185612674565b8281036020840152611fc58185612674565b600060208284031215612d1557600080fd5b81516001600160e01b031981168114611f6357600080fd5b600060ff821660ff841680821015612d4757612d47612cad565b90039392505050565b6000816000190483118215151615612d6a57612d6a612cad565b500290565b602080825260059082015264475332303160d81b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60028110612dc257634e487b7160e01b600052602160045260246000fd5b9052565b6001600160a01b038d168152602081018c90526101606040820181905281018a905260006101808b8d828501376000838d01820152601f8c01601f19168301612e12606085018d612da4565b8a60808501528960a08501528860c0850152612e3960e08501896001600160a01b03169052565b6001600160a01b0387166101008501528184820301610120850152612e6082820187612674565b92505050612e7a6101408301846001600160a01b03169052565b9d9c50505050505050505050505050565b60008219821115612e9e57612e9e612cad565b500190565b600082612ec057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612ed757612ed7612cad565b500390565b634e487b7160e01b600052603260045260246000fd5b6080808252810185905260008660a08301825b88811015612f35578235612f1881612475565b6001600160a01b0316825260209283019290910190600101612f05565b50602084019690965250506001600160a01b039283166040820152911660609091015292915050565b8183823760009101908152919050565b8b81526001600160a01b038b81166020830152604082018b9052606082018a9052610160820190612fa2608084018b612da4565b60a083019890985260c082019690965260e0810194909452918516610100840152909316610120820152610140019190915295945050505050565b600081612fec57612fec612cad565b50600019019056fea2646970667358221220f6f5fdd82f6339ba7e849e16f376185b1da6f9d1c9d29b9e22a63bb16320857364736f6c634300080c0033", - "devdoc": { - "kind": "dev", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "details": "Allows to add a new owner to the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "New owner address." - } - }, - "approveHash(bytes32)": { - "details": "Marks a hash as approved. This can be used to validate a hash that is used by a signature.", - "params": { - "hashToApprove": "The hash that should be marked as approved for signatures that are verified by this contract." - } - }, - "changeThreshold(uint256)": { - "details": "Allows to update the number of required confirmations by Safe owners. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold." - } - }, - "checkNSignatures(bytes32,bytes,bytes,uint256)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "requiredSignatures": "Amount of required valid signatures.", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "checkSignatures(bytes32,bytes,bytes)": { - "details": "Checks whether the signature provided is valid for the provided data, hash. Will revert otherwise.", - "params": { - "data": "That should be signed (this is passed to an external validator contract)", - "dataHash": "Hash of the data (could be either a message hash or transaction hash)", - "signatures": "Signature data that should be verified. Can be ECDSA signature, contract signature (EIP-1271) or approved hash." - } - }, - "constructor": { - "details": "The GnosisSafe constructor disables the contract from being set up so that it can only be used through proxies. We undo that here and then do the setup.", - "params": { - "_owners": "Owners", - "_threshold": "Number of required confirmations for a transaction" - } - }, - "disableModule(address,address)": { - "details": "Allows to remove a module from the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be removed.", - "prevModule": "Module that pointed to the module to be removed in the linked list" - } - }, - "enableModule(address)": { - "details": "Allows to add a module to the whitelist. This can only be done via a Safe transaction.", - "params": { - "module": "Module to be whitelisted." - } - }, - "encodeTransactionData(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns the bytes that are hashed to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash bytes." - } - }, - "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": { - "details": "Allows to execute a Safe transaction confirmed by required number of owners and then pays the account that submitted the transaction. Note: The fees are always transferred, even if the user transaction fails.", - "params": { - "baseGas": "Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)", - "data": "Data payload of Safe transaction.", - "gasPrice": "Gas price that should be used for the payment calculation.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type of Safe transaction.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Gas that should be used for the Safe transaction.", - "signatures": "Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - } - }, - "execTransactionFromModule(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations.", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": { - "details": "Allows a Module to execute a Safe transaction without any further confirmations and return data", - "params": { - "data": "Data payload of module transaction.", - "operation": "Operation type of module transaction.", - "to": "Destination address of module transaction.", - "value": "Ether value of module transaction." - } - }, - "getChainId()": { - "details": "Returns the chain id used by this contract." - }, - "getModulesPaginated(address,uint256)": { - "details": "Returns array of modules.", - "params": { - "pageSize": "Maximum number of modules that should be returned.", - "start": "Start of the page." - }, - "returns": { - "array": "Array of modules.", - "next": "Start of the next page." - } - }, - "getOwners()": { - "details": "Returns array of owners.", - "returns": { - "_0": "Array of Safe owners." - } - }, - "getStorageAt(uint256,uint256)": { - "details": "Reads `length` bytes of storage in the currents contract", - "params": { - "length": "- the number of words (32 bytes) of data to read", - "offset": "- the offset in the current contract's storage in words to start reading from" - }, - "returns": { - "_0": "the bytes that were read." - } - }, - "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": { - "details": "Returns hash to be signed by owners.", - "params": { - "_nonce": "Transaction nonce.", - "baseGas": "Gas costs for data used to trigger the safe transaction.", - "data": "Data payload.", - "gasPrice": "Maximum gas price that should be used for this transaction.", - "gasToken": "Token address (or 0 if ETH) that is used for the payment.", - "operation": "Operation type.", - "refundReceiver": "Address of receiver of gas payment (or 0 if tx.origin).", - "safeTxGas": "Fas that should be used for the safe transaction.", - "to": "Destination address.", - "value": "Ether value." - }, - "returns": { - "_0": "Transaction hash." - } - }, - "isModuleEnabled(address)": { - "details": "Returns if an module is enabled", - "returns": { - "_0": "True if the module is enabled" - } - }, - "removeOwner(address,address,uint256)": { - "details": "Allows to remove an owner from the Safe and update the threshold at the same time. This can only be done via a Safe transaction.", - "params": { - "_threshold": "New threshold.", - "owner": "Owner address to be removed.", - "prevOwner": "Owner that pointed to the owner to be removed in the linked list" - } - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "details": "Allows to estimate a Safe transaction. This method is only meant for estimation purpose, therefore the call will always revert and encode the result in the revert data. Since the `estimateGas` function includes refunds, call this method to get an estimated of the costs that are deducted from the safe with `execTransaction`", - "params": { - "data": "Data payload of Safe transaction.", - "operation": "Operation type of Safe transaction.", - "to": "Destination address of Safe transaction.", - "value": "Ether value of Safe transaction." - }, - "returns": { - "_0": "Estimate without refunds and overhead fees (base transaction and payload data gas costs)." - } - }, - "setFallbackHandler(address)": { - "details": "Allows to add a contract to handle fallback calls. Only fallback calls without value and with data will be forwarded. This can only be done via a Safe transaction.", - "params": { - "handler": "contract to handle fallbacks calls." - } - }, - "setGuard(address)": { - "details": "Set a guard that checks transactions before execution", - "params": { - "guard": "The address of the guard to be used or the 0 address to disable the guard" - } - }, - "setup(address[],uint256,address,bytes,address,address,uint256,address)": { - "details": "Setup function sets initial storage of contract.", - "params": { - "_owners": "List of Safe owners.", - "_threshold": "Number of required confirmations for a Safe transaction.", - "data": "Data payload for optional delegate call.", - "fallbackHandler": "Handler for fallback calls to this contract", - "payment": "Value that should be paid", - "paymentReceiver": "Adddress that should receive the payment (or 0 if tx.origin)", - "paymentToken": "Token that should be used for the payment (0 is ETH)", - "to": "Contract address for optional delegate call." - } - }, - "simulateAndRevert(address,bytes)": { - "details": "Performs a delegetecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). This method reverts with data equal to `abi.encode(bool(success), bytes(response))`. Specifically, the `returndata` after a call to this method will be: `success:bool || response.length:uint256 || response:bytes`.", - "params": { - "calldataPayload": "Calldata that should be sent to the target contract (encoded method name and arguments).", - "targetContract": "Address of the contract containing the code to execute." - } - }, - "swapOwner(address,address,address)": { - "details": "Allows to swap/replace an owner from the Safe with another address. This can only be done via a Safe transaction.", - "params": { - "newOwner": "New owner address.", - "oldOwner": "Owner address to be replaced.", - "prevOwner": "Owner that pointed to the owner to be replaced in the linked list" - } - } - }, - "title": "Gnosis Safe 1.3.0 modified to be used without a proxy", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "addOwnerWithThreshold(address,uint256)": { - "notice": "Adds the owner `owner` to the Safe and updates the threshold to `_threshold`." - }, - "changeThreshold(uint256)": { - "notice": "Changes the threshold of the Safe to `_threshold`." - }, - "disableModule(address,address)": { - "notice": "Disables the module `module` for the Safe." - }, - "enableModule(address)": { - "notice": "Enables the module `module` for the Safe." - }, - "removeOwner(address,address,uint256)": { - "notice": "Removes the owner `owner` from the Safe and updates the threshold to `_threshold`." - }, - "requiredTxGas(address,uint256,bytes,uint8)": { - "notice": "Deprecated in favor of common/StorageAccessible.sol and will be removed in next version." - }, - "swapOwner(address,address,address)": { - "notice": "Replaces the owner `oldOwner` in the Safe with `newOwner`." - } - }, - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 2221, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "singleton", - "offset": 0, - "slot": "0", - "type": "t_address" - }, - { - "astId": 1272, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "modules", - "offset": 0, - "slot": "1", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1631, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "owners", - "offset": 0, - "slot": "2", - "type": "t_mapping(t_address,t_address)" - }, - { - "astId": 1633, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "ownerCount", - "offset": 0, - "slot": "3", - "type": "t_uint256" - }, - { - "astId": 1635, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "threshold", - "offset": 0, - "slot": "4", - "type": "t_uint256" - }, - { - "astId": 205, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "nonce", - "offset": 0, - "slot": "5", - "type": "t_uint256" - }, - { - "astId": 207, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "_deprecatedDomainSeparator", - "offset": 0, - "slot": "6", - "type": "t_bytes32" - }, - { - "astId": 211, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "signedMessages", - "offset": 0, - "slot": "7", - "type": "t_mapping(t_bytes32,t_uint256)" - }, - { - "astId": 217, - "contract": "contracts/access/GnosisSafeWithoutProxy.sol:GnosisSafeWithoutProxy", - "label": "approvedHashes", - "offset": 0, - "slot": "8", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - }, - "t_bytes32": { - "encoding": "inplace", - "label": "bytes32", - "numberOfBytes": "32" - }, - "t_mapping(t_address,t_address)": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => address)", - "numberOfBytes": "32", - "value": "t_address" - }, - "t_mapping(t_address,t_mapping(t_bytes32,t_uint256))": { - "encoding": "mapping", - "key": "t_address", - "label": "mapping(address => mapping(bytes32 => uint256))", - "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_uint256)" - }, - "t_mapping(t_bytes32,t_uint256)": { - "encoding": "mapping", - "key": "t_bytes32", - "label": "mapping(bytes32 => uint256)", - "numberOfBytes": "32", - "value": "t_uint256" - }, - "t_uint256": { - "encoding": "inplace", - "label": "uint256", - "numberOfBytes": "32" - } - } - } -} diff --git a/deployments/rari/OwnableCallForwarder.json b/deployments/rari/OwnableCallForwarder.json deleted file mode 100644 index 59d26ee5..00000000 --- a/deployments/rari/OwnableCallForwarder.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_owner", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "forwardTarget", - "type": "address" - }, - { - "internalType": "bytes", - "name": "forwardedCalldata", - "type": "bytes" - } - ], - "name": "forwardCall", - "outputs": [ - { - "internalType": "bytes", - "name": "returnedData", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ], - "transactionHash": "0xc19848ffb841e74444ab0934ebca69dd0f5a321879de18746128099a056af134", - "receipt": { - "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": null, - "transactionIndex": 1, - "gasUsed": "410706", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000040000000000020000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000001000000000000000000000000000000001000000000000000000020000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000020000000000000000000000000000000000080000000000000000000000000000000", - "blockHash": "0x6f78fb25132261058fec1cddbc57531adca70384a0439135d2ebba9d7f16d526", - "transactionHash": "0xc19848ffb841e74444ab0934ebca69dd0f5a321879de18746128099a056af134", - "logs": [ - { - "transactionIndex": 1, - "blockNumber": 315644, - "transactionHash": "0xc19848ffb841e74444ab0934ebca69dd0f5a321879de18746128099a056af134", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" - ], - "data": "0x", - "logIndex": 0, - "blockHash": "0x6f78fb25132261058fec1cddbc57531adca70384a0439135d2ebba9d7f16d526" - }, - { - "transactionIndex": 1, - "blockNumber": 315644, - "transactionHash": "0xc19848ffb841e74444ab0934ebca69dd0f5a321879de18746128099a056af134", - "address": "0x81bc85f329cDB28936FbB239f734AE495121F9A6", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" - ], - "data": "0x", - "logIndex": 1, - "blockHash": "0x6f78fb25132261058fec1cddbc57531adca70384a0439135d2ebba9d7f16d526" - } - ], - "blockNumber": 315644, - "cumulativeGasUsed": "410706", - "status": 1, - "byzantium": true - }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], - "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", - "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", - "devdoc": { - "kind": "dev", - "methods": { - "constructor": { - "params": { - "_owner": "Owner address" - } - }, - "forwardCall(address,bytes)": { - "params": { - "forwardTarget": "Target address that the calldata will be forwarded to", - "forwardedCalldata": "Calldata to be forwarded to the target address" - }, - "returns": { - "returnedData": "Data returned by the forwarded call" - } - }, - "owner()": { - "details": "Returns the address of the current owner." - }, - "renounceOwnership()": { - "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." - }, - "transferOwnership(address)": { - "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." - } - }, - "title": "Contract that forwards the calls that its owner sends", - "version": 1 - }, - "userdoc": { - "kind": "user", - "methods": { - "forwardCall(address,bytes)": { - "notice": "Forwards the calldata and the value to the target address if the sender is the owner and returns the data" - } - }, - "notice": "AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.", - "version": 1 - }, - "storageLayout": { - "storage": [ - { - "astId": 13220, - "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", - "label": "_owner", - "offset": 0, - "slot": "0", - "type": "t_address" - } - ], - "types": { - "t_address": { - "encoding": "inplace", - "label": "address", - "numberOfBytes": "20" - } - } - } -} diff --git a/deployments/zircuit-sepolia-testnet/.chainId b/deployments/zircuit-sepolia-testnet/.chainId index de1f01b5..624e2d23 100644 --- a/deployments/zircuit-sepolia-testnet/.chainId +++ b/deployments/zircuit-sepolia-testnet/.chainId @@ -1 +1 @@ -48899 \ No newline at end of file +48898 \ No newline at end of file diff --git a/deployments/zircuit-sepolia-testnet/AccessControlRegistry.json b/deployments/zircuit-sepolia-testnet/AccessControlRegistry.json index 91eba9d4..890e3f21 100644 --- a/deployments/zircuit-sepolia-testnet/AccessControlRegistry.json +++ b/deployments/zircuit-sepolia-testnet/AccessControlRegistry.json @@ -1,5 +1,5 @@ { - "address": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", + "address": "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "abi": [ { "anonymous": false, @@ -342,25 +342,25 @@ "type": "function" } ], - "transactionHash": "0x47fb4ab2e26fd2d13b5e17ee63b15599916c4464428df186cf64ee7ff21375c9", + "transactionHash": "0xd985ae964ad6fa3dddebd61aab94848b7be29e00e20fef05eca162cf6a95aed3", "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", - "transactionIndex": 1, - "gasUsed": "1059987", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", + "contractAddress": null, + "transactionIndex": 0, + "gasUsed": "1062014", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xce46996716cf39da82078924828e0aba4445418e72e778cce5917a5bdc68cdf4", - "transactionHash": "0x47fb4ab2e26fd2d13b5e17ee63b15599916c4464428df186cf64ee7ff21375c9", + "blockHash": "0x71744e6209afdfd6aa30c92ab6a67c7ed0a03d1ab4c81a9870a46126b8a10865", + "transactionHash": "0xd985ae964ad6fa3dddebd61aab94848b7be29e00e20fef05eca162cf6a95aed3", "logs": [], - "blockNumber": 7031228, - "cumulativeGasUsed": "1110452", + "blockNumber": 5336236, + "cumulativeGasUsed": "1062014", "status": 1, "byzantium": true }, "args": [], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rootRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"InitializedRole\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"manager\",\"type\":\"address\"}],\"name\":\"initializeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"adminRole\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"name\":\"initializeRoleAndGrantToSender\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Each user is called a \\\"manager\\\", and is the only member of their root role. Starting from this root role, they can create an arbitrary tree of roles and grant these to accounts. Each role has a description, and roles adminned by the same role cannot have the same description.\",\"kind\":\"dev\",\"methods\":{\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initializeManager(address)\":{\"details\":\"Anyone can initialize a manager. An uninitialized manager attempting to initialize a role will be initialized automatically. Once a manager is initialized, subsequent initializations have no effect.\",\"params\":{\"manager\":\"Manager address to be initialized\"}},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"details\":\"If the sender should not have the initialized role, they should explicitly renounce it after initializing it. Once a role is initialized, subsequent initializations have no effect other than granting the role to the sender. The sender must be a member of `adminRole`. `adminRole` value is not validated because the sender cannot have the `bytes32(0)` role. If the sender is an uninitialized manager that is initializing a role directly under their root role, manager initialization will happen automatically, which will grant the sender `adminRole` and allow them to initialize the role.\",\"params\":{\"adminRole\":\"Admin role to be assigned to the initialized role\",\"description\":\"Human-readable description of the initialized role\"},\"returns\":{\"role\":\"Initialized role\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"renounceRole(bytes32,address)\":{\"details\":\"Overriden to disallow managers from renouncing their root roles. `role` and `account` are not validated because `AccessControl.renounceRole` will revert if either of them is zero.\",\"params\":{\"account\":\"Account to renounce the role\",\"role\":\"Role to be renounced\"}},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"title\":\"Contract that allows users to manage independent, tree-shaped access control tables\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"initializeManager(address)\":{\"notice\":\"Initializes the manager by initializing its root role and granting it to them\"},\"initializeRoleAndGrantToSender(bytes32,string)\":{\"notice\":\"Initializes a role by setting its admin role and grants it to the sender\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"renounceRole(bytes32,address)\":{\"notice\":\"Called by the account to renounce the role\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Multiple contracts can refer to this contract to check if their users have granted accounts specific roles. Therefore, it aims to keep all access control roles of its users in this single contract.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/AccessControlRegistry.sol\":\"AccessControlRegistry\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\\\";\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract that allows users to manage independent, tree-shaped access\\n/// control tables\\n/// @notice Multiple contracts can refer to this contract to check if their\\n/// users have granted accounts specific roles. Therefore, it aims to keep all\\n/// access control roles of its users in this single contract.\\n/// @dev Each user is called a \\\"manager\\\", and is the only member of their root\\n/// role. Starting from this root role, they can create an arbitrary tree of\\n/// roles and grant these to accounts. Each role has a description, and roles\\n/// adminned by the same role cannot have the same description.\\ncontract AccessControlRegistry is\\n AccessControl,\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistry\\n{\\n /// @notice Initializes the manager by initializing its root role and\\n /// granting it to them\\n /// @dev Anyone can initialize a manager. An uninitialized manager\\n /// attempting to initialize a role will be initialized automatically.\\n /// Once a manager is initialized, subsequent initializations have no\\n /// effect.\\n /// @param manager Manager address to be initialized\\n function initializeManager(address manager) public override {\\n require(manager != address(0), \\\"Manager address zero\\\");\\n bytes32 rootRole = _deriveRootRole(manager);\\n if (!hasRole(rootRole, manager)) {\\n _grantRole(rootRole, manager);\\n emit InitializedManager(rootRole, manager, _msgSender());\\n }\\n }\\n\\n /// @notice Called by the account to renounce the role\\n /// @dev Overriden to disallow managers from renouncing their root roles.\\n /// `role` and `account` are not validated because\\n /// `AccessControl.renounceRole` will revert if either of them is zero.\\n /// @param role Role to be renounced\\n /// @param account Account to renounce the role\\n function renounceRole(\\n bytes32 role,\\n address account\\n ) public override(AccessControl, IAccessControl) {\\n require(\\n role != _deriveRootRole(account),\\n \\\"role is root role of account\\\"\\n );\\n AccessControl.renounceRole(role, account);\\n }\\n\\n /// @notice Initializes a role by setting its admin role and grants it to\\n /// the sender\\n /// @dev If the sender should not have the initialized role, they should\\n /// explicitly renounce it after initializing it.\\n /// Once a role is initialized, subsequent initializations have no effect\\n /// other than granting the role to the sender.\\n /// The sender must be a member of `adminRole`. `adminRole` value is not\\n /// validated because the sender cannot have the `bytes32(0)` role.\\n /// If the sender is an uninitialized manager that is initializing a role\\n /// directly under their root role, manager initialization will happen\\n /// automatically, which will grant the sender `adminRole` and allow them\\n /// to initialize the role.\\n /// @param adminRole Admin role to be assigned to the initialized role\\n /// @param description Human-readable description of the initialized role\\n /// @return role Initialized role\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external override returns (bytes32 role) {\\n require(bytes(description).length > 0, \\\"Role description empty\\\");\\n role = _deriveRole(adminRole, description);\\n // AccessControl roles have `DEFAULT_ADMIN_ROLE` (i.e., `bytes32(0)`)\\n // as their `adminRole` by default. No account in AccessControlRegistry\\n // can possibly have that role, which means all initialized roles will\\n // have non-default admin roles, and vice versa.\\n if (getRoleAdmin(role) == DEFAULT_ADMIN_ROLE) {\\n if (adminRole == _deriveRootRole(_msgSender())) {\\n initializeManager(_msgSender());\\n }\\n _setRoleAdmin(role, adminRole);\\n emit InitializedRole(role, adminRole, description, _msgSender());\\n }\\n grantRole(role, _msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x86d904bfa0137a90286311c0e03627272ebef61cac537e3aa26b6f992942429b\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67e3daf189111d6d5b0464ed09cf9f0605a22c4b965a7fcecd707101faff008a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b50611244806100206000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806373e9836211610081578063a217fddf1161005b578063a217fddf146101cd578063ac9650d8146101d5578063d547741f146101f557600080fd5b806373e98362146101705780637f7120fe1461018357806391d148541461019657600080fd5b80632f2ff15d116100b25780632f2ff15d1461012757806336568abe1461013c578063437b91161461014f57600080fd5b806301ffc9a7146100ce578063248a9ca3146100f6575b600080fd5b6100e16100dc366004610d7b565b610208565b60405190151581526020015b60405180910390f35b610119610104366004610dbd565b60009081526020819052604090206001015490565b6040519081526020016100ed565b61013a610135366004610df2565b6102a1565b005b61013a61014a366004610df2565b6102cb565b61016261015d366004610e1e565b610364565b6040516100ed929190610f38565b61011961017e366004610f91565b6104ca565b61013a61019136600461100d565b610611565b6100e16101a4366004610df2565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610119600081565b6101e86101e3366004610e1e565b61071d565b6040516100ed9190611028565b61013a610203366004610df2565b61089e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061029b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546102bc816108c3565b6102c683836108d0565b505050565b60408051606083901b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012082036103565760405162461bcd60e51b815260206004820152601c60248201527f726f6c6520697320726f6f7420726f6c65206f66206163636f756e740000000060448201526064015b60405180910390fd5b610360828261096e565b5050565b606080828067ffffffffffffffff8111156103815761038161103b565b6040519080825280602002602001820160405280156103aa578160200160208202803683370190505b5092508067ffffffffffffffff8111156103c6576103c661103b565b6040519080825280602002602001820160405280156103f957816020015b60608152602001906001900390816103e45790505b50915060005b818110156104c1573086868381811061041a5761041a611051565b905060200281019061042c9190611067565b60405161043a9291906110b5565b600060405180830381855af49150503d8060008114610475576040519150601f19603f3d011682016040523d82523d6000602084013e61047a565b606091505b5085838151811061048d5761048d611051565b602002602001018584815181106104a6576104a6611051565b602090810291909101019190915290151590526001016103ff565b50509250929050565b6000816105195760405162461bcd60e51b815260206004820152601660248201527f526f6c65206465736372697074696f6e20656d70747900000000000000000000604482015260640161034d565b6105598484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109f692505050565b60008181526020819052604090206001015490915061060057604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012084036105b8576105b833610611565b6105c28185610a4b565b83817f532ead3ec09896bef1351791fbaad86ac03f3204090a8e7f173f41414b1fdac08585336040516105f7939291906110c5565b60405180910390a35b61060a81336102a1565b9392505050565b6001600160a01b0381166106675760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640161034d565b604080516bffffffffffffffffffffffff19606084901b16602080830191909152825180830360140181526034909201835281519181019190912060008181528083528381206001600160a01b03861682529092529190205460ff16610360576106d181836108d0565b6001600160a01b038216817f875abd51165f03877e956b2e4342de31979d7dd8d271176cf24151278f355a1d336040516001600160a01b03909116815260200160405180910390a35050565b6060818067ffffffffffffffff8111156107395761073961103b565b60405190808252806020026020018201604052801561076c57816020015b60608152602001906001900390816107575790505b50915060005b818110156108965760003086868481811061078f5761078f611051565b90506020028101906107a19190611067565b6040516107af9291906110b5565b600060405180830381855af49150503d80600081146107ea576040519150601f19603f3d011682016040523d82523d6000602084013e6107ef565b606091505b5085848151811061080257610802611051565b602090810291909101015290508061088d57600084838151811061082857610828611051565b602002602001015190506000815111156108455780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e670000000000604482015260640161034d565b50600101610772565b505092915050565b6000828152602081905260409020600101546108b9816108c3565b6102c68383610a96565b6108cd8133610b15565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610360576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561092a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b03811633146109ec5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161034d565b6103608282610a96565b600061060a8383604051602001610a0d9190611107565b60408051601f198184030181528282528051602091820120838201949094528282019390935280518083038201815260609092019052805191012090565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610360576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661036057610b4681610b88565b610b51836020610b9a565b604051602001610b62929190611123565b60408051601f198184030181529082905262461bcd60e51b825261034d916004016111a4565b606061029b6001600160a01b03831660145b60606000610ba98360026111cd565b610bb49060026111e4565b67ffffffffffffffff811115610bcc57610bcc61103b565b6040519080825280601f01601f191660200182016040528015610bf6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610c2d57610c2d611051565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610c7857610c78611051565b60200101906001600160f81b031916908160001a9053506000610c9c8460026111cd565b610ca79060016111e4565b90505b6001811115610d2c577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610ce857610ce8611051565b1a60f81b828281518110610cfe57610cfe611051565b60200101906001600160f81b031916908160001a90535060049490941c93610d25816111f7565b9050610caa565b50831561060a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161034d565b600060208284031215610d8d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461060a57600080fd5b600060208284031215610dcf57600080fd5b5035919050565b80356001600160a01b0381168114610ded57600080fd5b919050565b60008060408385031215610e0557600080fd5b82359150610e1560208401610dd6565b90509250929050565b60008060208385031215610e3157600080fd5b823567ffffffffffffffff80821115610e4957600080fd5b818501915085601f830112610e5d57600080fd5b813581811115610e6c57600080fd5b8660208260051b8501011115610e8157600080fd5b60209290920196919550909350505050565b60005b83811015610eae578181015183820152602001610e96565b50506000910152565b60008151808452610ecf816020860160208601610e93565b601f01601f19169290920160200192915050565b600081518084526020808501808196508360051b8101915082860160005b85811015610f2b578284038952610f19848351610eb7565b98850198935090840190600101610f01565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015610f73578151151584529284019290840190600101610f55565b50505083810382850152610f878186610ee3565b9695505050505050565b600080600060408486031215610fa657600080fd5b83359250602084013567ffffffffffffffff80821115610fc557600080fd5b818601915086601f830112610fd957600080fd5b813581811115610fe857600080fd5b876020828501011115610ffa57600080fd5b6020830194508093505050509250925092565b60006020828403121561101f57600080fd5b61060a82610dd6565b60208152600061060a6020830184610ee3565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261107e57600080fd5b83018035915067ffffffffffffffff82111561109957600080fd5b6020019150368190038213156110ae57600080fd5b9250929050565b8183823760009101908152919050565b604081528260408201528284606083013760006060848301015260006060601f19601f86011683010190506001600160a01b0383166020830152949350505050565b60008251611119818460208701610e93565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161115b816017850160208801610e93565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611198816028840160208801610e93565b01602801949350505050565b60208152600061060a6020830184610eb7565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761029b5761029b6111b7565b8082018082111561029b5761029b6111b7565b600081611206576112066111b7565b50600019019056fea2646970667358221220ae4f3421aaad5b1af12510ac03d7ec2649209de4471e48601a849e44cc2f1d5864736f6c63430008110033", @@ -452,12 +452,12 @@ "storageLayout": { "storage": [ { - "astId": 12848, + "astId": 7036, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "_roles", "offset": 0, "slot": "0", - "type": "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)" + "type": "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)" } ], "types": { @@ -483,19 +483,19 @@ "numberOfBytes": "32", "value": "t_bool" }, - "t_mapping(t_bytes32,t_struct(RoleData)12843_storage)": { + "t_mapping(t_bytes32,t_struct(RoleData)7031_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct AccessControl.RoleData)", "numberOfBytes": "32", - "value": "t_struct(RoleData)12843_storage" + "value": "t_struct(RoleData)7031_storage" }, - "t_struct(RoleData)12843_storage": { + "t_struct(RoleData)7031_storage": { "encoding": "inplace", "label": "struct AccessControl.RoleData", "members": [ { - "astId": 12840, + "astId": 7028, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "members", "offset": 0, @@ -503,7 +503,7 @@ "type": "t_mapping(t_address,t_bool)" }, { - "astId": 12842, + "astId": 7030, "contract": "contracts/access/AccessControlRegistry.sol:AccessControlRegistry", "label": "adminRole", "offset": 0, diff --git a/deployments/zircuit-sepolia-testnet/AirseekerRegistry.json b/deployments/zircuit-sepolia-testnet/AirseekerRegistry.json index eb286ed2..16bc7908 100644 --- a/deployments/zircuit-sepolia-testnet/AirseekerRegistry.json +++ b/deployments/zircuit-sepolia-testnet/AirseekerRegistry.json @@ -1,5 +1,5 @@ { - "address": "0xb331c8826d1FF3987AFFe318DFF3eAc900914Fdc", + "address": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "abi": [ { "inputs": [ @@ -723,40 +723,40 @@ "type": "function" } ], - "transactionHash": "0xd9c4e1ca0262e0f41376d7457aef8bb5e4f8e3a006b98b9a968862be8356c662", + "transactionHash": "0x8cb200a96181ed50b6f16b378ce3fc5b46630673e88e6cfe1c1a5c6c759de034", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, "gasUsed": "2414949", - "logsBloom": "0x00000000000000001000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000011000000000000000000000000000000000000020000000000000000000800000000000000000000000000020000400000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000800000000000000", - "blockHash": "0x3df948bd73a89a05f53e1bf68193aa4bec3c659ae95ce0200af313e0e2a7e613", - "transactionHash": "0xd9c4e1ca0262e0f41376d7457aef8bb5e4f8e3a006b98b9a968862be8356c662", + "logsBloom": "0x00000000000000000000000000000000000000000000020000800000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000001000000000000800000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xef3255f9094deaec73d5dc3a3ad9bdbdc28c4ef9b09328d6ab055a8d69bade40", + "transactionHash": "0x8cb200a96181ed50b6f16b378ce3fc5b46630673e88e6cfe1c1a5c6c759de034", "logs": [ { "transactionIndex": 1, - "blockNumber": 15074488, - "transactionHash": "0xd9c4e1ca0262e0f41376d7457aef8bb5e4f8e3a006b98b9a968862be8356c662", - "address": "0xb331c8826d1FF3987AFFe318DFF3eAc900914Fdc", + "blockNumber": 5336264, + "transactionHash": "0x8cb200a96181ed50b6f16b378ce3fc5b46630673e88e6cfe1c1a5c6c759de034", + "address": "0x7AdBF5b35Db3c150f1f7d4Adf3C489a6916418D6", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000ca69e397ccb2e93fc5bd2e260f0e0a7bd325e4d9" + "0x0000000000000000000000006ba5ac44eebdb45d9e92be870558b2517194de7e" ], "data": "0x", "logIndex": 0, - "blockHash": "0x3df948bd73a89a05f53e1bf68193aa4bec3c659ae95ce0200af313e0e2a7e613" + "blockHash": "0xef3255f9094deaec73d5dc3a3ad9bdbdc28c4ef9b09328d6ab055a8d69bade40" } ], - "blockNumber": 15074488, - "cumulativeGasUsed": "2460982", + "blockNumber": 5336264, + "cumulativeGasUsed": "2468888", "status": 1, "byzantium": true }, - "args": ["0xCa69E397Ccb2E93fc5Bd2e260f0E0A7bd325e4D9", "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D"], + "args": ["0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title A contract where active data feeds and their specs are registered by\\n/// the contract owner for the respective Airseeker to refer to\\n/// @notice Airseeker is an application that pushes API provider-signed data to\\n/// chain when certain conditions are met so that the data feeds served on the\\n/// Api3ServerV1 contract are updated according to the respective specs. In\\n/// other words, this contract is an on-chain configuration file for an\\n/// Airseeker (or multiple Airseekers in a setup with redundancy).\\n/// The Airseeker must know which data feeds are active (and thus need to be\\n/// updated), the constituting Airnode (the oracle node that API providers\\n/// operate to sign data) addresses and request template IDs, what the\\n/// respective on-chain data feed values are, what the update parameters are,\\n/// and the URL of the signed APIs (from which Airseeker can fetch signed data)\\n/// that are hosted by the respective API providers.\\n/// The contract owner is responsible with leaving the state of this contract\\n/// in a way that Airseeker expects. For example, if a dAPI name is activated\\n/// without registering the respective data feed, the Airseeker will not have\\n/// access to the data that it needs to execute updates.\\ncontract AirseekerRegistry is\\n Ownable,\\n ExtendedSelfMulticall,\\n IAirseekerRegistry\\n{\\n using EnumerableSet for EnumerableSet.Bytes32Set;\\n\\n /// @notice Maximum number of Beacons in a Beacon set that can be\\n /// registered\\n /// @dev Api3ServerV1 introduces the concept of a Beacon, which is a\\n /// single-source data feed. Api3ServerV1 allows Beacons to be read\\n /// individually, or arbitrary combinations of them to be aggregated\\n /// on-chain to form multiple-source data feeds, which are called Beacon\\n /// sets. This contract does not support Beacon sets that consist of more\\n /// than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\\n uint256 public constant override MAXIMUM_BEACON_COUNT_IN_SET = 21;\\n\\n /// @notice Maximum encoded update parameters length\\n uint256 public constant override MAXIMUM_UPDATE_PARAMETERS_LENGTH = 1024;\\n\\n /// @notice Maximum signed API URL length\\n uint256 public constant override MAXIMUM_SIGNED_API_URL_LENGTH = 256;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Airnode address to signed API URL\\n /// @dev An Airseeker can be configured to refer to additional signed APIs\\n /// than the ones whose URLs are stored in this contract for redundancy\\n mapping(address => string) public override airnodeToSignedApiUrl;\\n\\n /// @notice Data feed ID to encoded details\\n mapping(bytes32 => bytes) public override dataFeedIdToDetails;\\n\\n // Api3ServerV1 uses Beacon IDs (see the `deriveBeaconId()` implementation)\\n // and Beacon set IDs (see the `deriveBeaconSetId()` implementation) to\\n // address data feeds. We use data feed ID as a general term to refer to a\\n // Beacon ID/Beacon set ID.\\n // A data feed ID is immutable (i.e., it always points to the same Beacon\\n // or Beacon set). Api3ServerV1 allows a dAPI name to be pointed to a data\\n // feed ID by privileged accounts to implement a mutable data feed\\n // addressing scheme.\\n // If the data feed ID or dAPI name should be used to read a data feed\\n // depends on the use case. To support both schemes, AirseekerRegistry\\n // allows data feeds specs to be defined with either the data feed ID or\\n // the dAPI name.\\n EnumerableSet.Bytes32Set private activeDataFeedIds;\\n\\n EnumerableSet.Bytes32Set private activeDapiNames;\\n\\n // Considering that the update parameters are typically reused between data\\n // feeds, a hash map is used to avoid storing the same update parameters\\n // redundantly\\n mapping(bytes32 => bytes32) private dataFeedIdToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes32) private dapiNameToUpdateParametersHash;\\n\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of `abi.encode(address, bytes32)`\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of `abi.encode(address[2], bytes32[2])`\\n uint256\\n private constant DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS =\\n 32 + 32 + (32 + 2 * 32) + (32 + 2 * 32);\\n\\n // Length of\\n // `abi.encode(address[MAXIMUM_BEACON_COUNT_IN_SET], bytes32[MAXIMUM_BEACON_COUNT_IN_SET])`\\n uint256 private constant MAXIMUM_DATA_FEED_DETAILS_LENGTH =\\n 32 +\\n 32 +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32) +\\n (32 + MAXIMUM_BEACON_COUNT_IN_SET * 32);\\n\\n /// @dev Reverts if the data feed ID is zero\\n /// @param dataFeedId Data feed ID\\n modifier onlyNonZeroDataFeedId(bytes32 dataFeedId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the dAPI name is zero\\n /// @param dapiName dAPI name\\n modifier onlyNonZeroDapiName(bytes32 dapiName) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n _;\\n }\\n\\n /// @dev Reverts if the update parameters are too long\\n /// @param updateParameters Update parameters\\n modifier onlyValidUpdateParameters(bytes calldata updateParameters) {\\n require(\\n updateParameters.length <= MAXIMUM_UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters too long\\\"\\n );\\n _;\\n }\\n\\n /// @param owner_ Owner address\\n /// @param api3ServerV1_ Api3ServerV1 contract address\\n constructor(address owner_, address api3ServerV1_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner() public view override(Ownable, IOwnable) returns (address) {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(Ownable, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be activated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeActivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.add(dataFeedId)) {\\n emit ActivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be activated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeActivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.add(dapiName)) {\\n emit ActivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID to be deactivated\\n /// @param dataFeedId Data feed ID\\n function setDataFeedIdToBeDeactivated(\\n bytes32 dataFeedId\\n ) external override onlyOwner onlyNonZeroDataFeedId(dataFeedId) {\\n if (activeDataFeedIds.remove(dataFeedId)) {\\n emit DeactivatedDataFeedId(dataFeedId);\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name to be deactivated\\n /// @param dapiName dAPI name\\n function setDapiNameToBeDeactivated(\\n bytes32 dapiName\\n ) external override onlyOwner onlyNonZeroDapiName(dapiName) {\\n if (activeDapiNames.remove(dapiName)) {\\n emit DeactivatedDapiName(dapiName);\\n }\\n }\\n\\n /// @notice Called by the owner to set the data feed ID update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDataFeedId(dataFeedId)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (\\n dataFeedIdToUpdateParametersHash[dataFeedId] != updateParametersHash\\n ) {\\n dataFeedIdToUpdateParametersHash[dataFeedId] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDataFeedIdUpdateParameters(\\n dataFeedId,\\n updateParameters\\n );\\n }\\n }\\n\\n /// @notice Called by the owner to set the dAPI name update parameters.\\n /// The update parameters must be encoded in a format that Airseeker\\n /// expects.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n )\\n external\\n override\\n onlyOwner\\n onlyNonZeroDapiName(dapiName)\\n onlyValidUpdateParameters(updateParameters)\\n {\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (dapiNameToUpdateParametersHash[dapiName] != updateParametersHash) {\\n dapiNameToUpdateParametersHash[dapiName] = updateParametersHash;\\n if (\\n updateParametersHashToValue[updateParametersHash].length !=\\n updateParameters.length\\n ) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n emit UpdatedDapiNameUpdateParameters(dapiName, updateParameters);\\n }\\n }\\n\\n /// @notice Called by the owner to set the signed API URL for the Airnode.\\n /// The signed API must implement the specific interface that Airseeker\\n /// expects.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external override onlyOwner {\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n require(\\n abi.encodePacked(signedApiUrl).length <=\\n MAXIMUM_SIGNED_API_URL_LENGTH,\\n \\\"Signed API URL too long\\\"\\n );\\n if (\\n keccak256(abi.encodePacked(airnodeToSignedApiUrl[airnode])) !=\\n keccak256(abi.encodePacked(signedApiUrl))\\n ) {\\n airnodeToSignedApiUrl[airnode] = signedApiUrl;\\n emit UpdatedSignedApiUrl(airnode, signedApiUrl);\\n }\\n }\\n\\n /// @notice Registers the data feed. In the case that the data feed is a\\n /// Beacon, the details should be the ABI-encoded Airnode address and\\n /// template ID. In the case that the data feed is a Beacon set, the\\n /// details should be the ABI-encoded Airnode addresses array and template\\n /// IDs array.\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n uint256 dataFeedDetailsLength = dataFeedDetails.length;\\n if (\\n dataFeedDetailsLength == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n // dataFeedId maps to a Beacon\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n require(airnode != address(0), \\\"Airnode address zero\\\");\\n dataFeedId = deriveBeaconId(airnode, templateId);\\n } else if (\\n dataFeedDetailsLength >=\\n DATA_FEED_DETAILS_LENGTH_FOR_BEACON_SET_WITH_TWO_BEACONS\\n ) {\\n require(\\n dataFeedDetailsLength <= MAXIMUM_DATA_FEED_DETAILS_LENGTH,\\n \\\"Data feed details too long\\\"\\n );\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n require(\\n abi.encode(airnodes, templateIds).length ==\\n dataFeedDetailsLength,\\n \\\"Data feed details trail\\\"\\n );\\n uint256 beaconCount = airnodes.length;\\n require(\\n beaconCount == templateIds.length,\\n \\\"Parameter length mismatch\\\"\\n );\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n require(airnodes[ind] != address(0), \\\"Airnode address zero\\\");\\n beaconIds[ind] = deriveBeaconId(\\n airnodes[ind],\\n templateIds[ind]\\n );\\n }\\n dataFeedId = deriveBeaconSetId(beaconIds);\\n } else {\\n revert(\\\"Data feed details too short\\\");\\n }\\n if (dataFeedIdToDetails[dataFeedId].length != dataFeedDetailsLength) {\\n dataFeedIdToDetails[dataFeedId] = dataFeedDetails;\\n emit RegisteredDataFeed(dataFeedId, dataFeedDetails);\\n }\\n }\\n\\n /// @notice In an imaginary array consisting of the active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// active data feed), returns empty values.\\n /// @dev Airseeker uses this function to get all the data it needs about an\\n /// active data feed with a single RPC call.\\n /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\n /// @param index Index\\n /// @return dataFeedId Data feed ID\\n /// @return dapiName dAPI name (`bytes32(0)` if the active data feed is\\n /// identified by a data feed ID)\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters\\n /// @return signedApiUrls Signed API URLs of the Beacon Airnodes\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n override\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n )\\n {\\n uint256 activeDataFeedIdsLength = activeDataFeedIdCount();\\n if (index < activeDataFeedIdsLength) {\\n dataFeedId = activeDataFeedIds.at(index);\\n updateParameters = dataFeedIdToUpdateParameters(dataFeedId);\\n } else if (index < activeDataFeedIdsLength + activeDapiNames.length()) {\\n dapiName = activeDapiNames.at(index - activeDataFeedIdsLength);\\n dataFeedId = IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n );\\n updateParameters = dapiNameToUpdateParameters(dapiName);\\n }\\n if (dataFeedId != bytes32(0)) {\\n dataFeedDetails = dataFeedIdToDetails[dataFeedId];\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n }\\n if (dataFeedDetails.length != 0) {\\n if (\\n dataFeedDetails.length ==\\n DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n signedApiUrls = new string[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnode, templateId));\\n signedApiUrls[0] = airnodeToSignedApiUrl[airnode];\\n } else {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n signedApiUrls = new string[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(\\n deriveBeaconId(airnodes[ind], templateIds[ind])\\n );\\n signedApiUrls[ind] = airnodeToSignedApiUrl[airnodes[ind]];\\n }\\n }\\n }\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID or dAPI name\\n /// @return Active data feed count\\n function activeDataFeedCount() external view override returns (uint256) {\\n return activeDataFeedIdCount() + activeDapiNameCount();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a data\\n /// feed ID\\n /// @return Active data feed ID count\\n function activeDataFeedIdCount() public view override returns (uint256) {\\n return activeDataFeedIds.length();\\n }\\n\\n /// @notice Returns the number of active data feeds identified by a dAPI\\n /// name\\n /// @return Active dAPI name count\\n function activeDapiNameCount() public view override returns (uint256) {\\n return activeDapiNames.length();\\n }\\n\\n /// @notice Data feed ID to update parameters\\n /// @param dataFeedId Data feed ID\\n /// @return updateParameters Update parameters\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dataFeedIdToUpdateParametersHash[dataFeedId]\\n ];\\n }\\n\\n /// @notice dAPI name to update parameters\\n /// @param dapiName dAPI name\\n /// @return updateParameters Update parameters\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n dapiNameToUpdateParametersHash[dapiName]\\n ];\\n }\\n\\n /// @notice Returns if the data feed with ID is registered\\n /// @param dataFeedId Data feed ID\\n /// @return If the data feed with ID is registered\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view override returns (bool) {\\n return dataFeedIdToDetails[dataFeedId].length != 0;\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) private pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n}\\n\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._positions[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._positions[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", @@ -1057,7 +1057,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_owner", "offset": 0, @@ -1086,7 +1086,7 @@ "label": "activeDataFeedIds", "offset": 0, "slot": "3", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 915, @@ -1094,7 +1094,7 @@ "label": "activeDapiNames", "offset": 0, "slot": "5", - "type": "t_struct(Bytes32Set)19019_storage" + "type": "t_struct(Bytes32Set)19194_storage" }, { "astId": 919, @@ -1176,27 +1176,27 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(Bytes32Set)19019_storage": { + "t_struct(Bytes32Set)19194_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Bytes32Set", "members": [ { - "astId": 19018, + "astId": 19193, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_inner", "offset": 0, "slot": "0", - "type": "t_struct(Set)18825_storage" + "type": "t_struct(Set)19000_storage" } ], "numberOfBytes": "64" }, - "t_struct(Set)18825_storage": { + "t_struct(Set)19000_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Set", "members": [ { - "astId": 18820, + "astId": 18995, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_values", "offset": 0, @@ -1204,7 +1204,7 @@ "type": "t_array(t_bytes32)dyn_storage" }, { - "astId": 18824, + "astId": 18999, "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", "label": "_positions", "offset": 0, diff --git a/deployments/zircuit-sepolia-testnet/Api3MarketV2.json b/deployments/zircuit-sepolia-testnet/Api3MarketV2.json index 4654a039..d1374d98 100644 --- a/deployments/zircuit-sepolia-testnet/Api3MarketV2.json +++ b/deployments/zircuit-sepolia-testnet/Api3MarketV2.json @@ -1,5 +1,5 @@ { - "address": "0xCa69E397Ccb2E93fc5Bd2e260f0E0A7bd325e4D9", + "address": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "abi": [ { "inputs": [ @@ -1271,40 +1271,40 @@ "type": "function" } ], - "transactionHash": "0x3726cdad7ec0238f868c031cb246e8feebb098b32fd21b4189239a8c9f5ef459", + "transactionHash": "0x74ea085e4ccd42dbed308f27fdbc17eadbab145120a9d883850e3f92d6b48ab4", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, "transactionIndex": 1, - "gasUsed": "5105189", - "logsBloom": "0x00000000000000000010000000000000000000000000000000800004000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000800000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x69af7387504d31273800d960f84d3ef810bf61554a2e2257a772c995f8d7d054", - "transactionHash": "0x3726cdad7ec0238f868c031cb246e8feebb098b32fd21b4189239a8c9f5ef459", + "gasUsed": "5105201", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000420000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000004000000000000000000000000000000000000", + "blockHash": "0x54bd582a61864301e685d6899327d89f0d87bab78a62fde938288e10625b80ea", + "transactionHash": "0x74ea085e4ccd42dbed308f27fdbc17eadbab145120a9d883850e3f92d6b48ab4", "logs": [ { "transactionIndex": 1, - "blockNumber": 15074484, - "transactionHash": "0x3726cdad7ec0238f868c031cb246e8feebb098b32fd21b4189239a8c9f5ef459", - "address": "0xCa69E397Ccb2E93fc5Bd2e260f0E0A7bd325e4D9", + "blockNumber": 5336258, + "transactionHash": "0x74ea085e4ccd42dbed308f27fdbc17eadbab145120a9d883850e3f92d6b48ab4", + "address": "0x6bA5ac44eebdB45D9E92Be870558b2517194dE7E", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000f6d2675468989387e96127546e0cbc9a384fa418" + "0x00000000000000000000000073e5e41f981365cd92180b040e8532693d84b32d" ], "data": "0x", "logIndex": 0, - "blockHash": "0x69af7387504d31273800d960f84d3ef810bf61554a2e2257a772c995f8d7d054" + "blockHash": "0x54bd582a61864301e685d6899327d89f0d87bab78a62fde938288e10625b80ea" } ], - "blockNumber": 15074484, - "cumulativeGasUsed": "5151222", + "blockNumber": 5336258, + "cumulativeGasUsed": "5159140", "status": 1, "byzantium": true }, - "args": ["0xF6d2675468989387e96127546e0CBC9A384fa418", "0x0cA813F8757197a2a0b0b13871953800ed884082", 10], + "args": ["0x73E5e41f981365cD92180B040e8532693D84B32D", "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", 10], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnable {\\n function owner() external view returns (address);\\n\\n function renounceOwnership() external;\\n\\n function transferOwnership(address newOwner) external;\\n}\\n\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\n mapping(bytes32 => bytes) private updateParametersHashToValue;\\n\\n // Length of abi.encode(address, bytes32)\\n uint256 private constant DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON =\\n 32 + 32;\\n\\n // Length of abi.encode(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\n /// @param dataFeedDetails Data feed details\\n /// @return dataFeedId Data feed ID\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external override returns (bytes32 dataFeedId) {\\n dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n /// @return updateParameters Update parameters of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId Data feed ID\\n /// @return dataFeedDetails Data feed details\\n /// @return dataFeedValue Data feed value read from Api3ServerV1\\n /// @return dataFeedTimestamp Data feed timestamp read from Api3ServerV1\\n /// @return beaconValues Beacon values read from Api3ServerV1\\n /// @return beaconTimestamps Beacon timestamps read from Api3ServerV1\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\n (address[] memory airnodes, bytes32[] memory templateIds) = abi\\n .decode(dataFeedDetails, (address[], bytes32[]));\\n uint256 beaconCount = airnodes.length;\\n beaconValues = new int224[](beaconCount);\\n beaconTimestamps = new uint32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) private pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n}\\n\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IAirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IOwnable.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IAirseekerRegistry is IOwnable, IExtendedSelfMulticall {\\n event ActivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event ActivatedDapiName(bytes32 indexed dapiName);\\n\\n event DeactivatedDataFeedId(bytes32 indexed dataFeedId);\\n\\n event DeactivatedDapiName(bytes32 indexed dapiName);\\n\\n event UpdatedDataFeedIdUpdateParameters(\\n bytes32 indexed dataFeedId,\\n bytes updateParameters\\n );\\n\\n event UpdatedDapiNameUpdateParameters(\\n bytes32 indexed dapiName,\\n bytes updateParameters\\n );\\n\\n event UpdatedSignedApiUrl(address indexed airnode, string signedApiUrl);\\n\\n event RegisteredDataFeed(bytes32 indexed dataFeedId, bytes dataFeedDetails);\\n\\n function setDataFeedIdToBeActivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeActivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdToBeDeactivated(bytes32 dataFeedId) external;\\n\\n function setDapiNameToBeDeactivated(bytes32 dapiName) external;\\n\\n function setDataFeedIdUpdateParameters(\\n bytes32 dataFeedId,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setDapiNameUpdateParameters(\\n bytes32 dapiName,\\n bytes calldata updateParameters\\n ) external;\\n\\n function setSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl\\n ) external;\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function activeDataFeed(\\n uint256 index\\n )\\n external\\n view\\n returns (\\n bytes32 dataFeedId,\\n bytes32 dapiName,\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes memory updateParameters,\\n string[] memory signedApiUrls\\n );\\n\\n function activeDataFeedCount() external view returns (uint256);\\n\\n function activeDataFeedIdCount() external view returns (uint256);\\n\\n function activeDapiNameCount() external view returns (uint256);\\n\\n function dataFeedIdToUpdateParameters(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory updateParameters);\\n\\n function dapiNameToUpdateParameters(\\n bytes32 dapiName\\n ) external view returns (bytes memory updateParameters);\\n\\n function dataFeedIsRegistered(\\n bytes32 dataFeedId\\n ) external view returns (bool);\\n\\n function MAXIMUM_BEACON_COUNT_IN_SET() external view returns (uint256);\\n\\n function MAXIMUM_UPDATE_PARAMETERS_LENGTH() external view returns (uint256);\\n\\n function MAXIMUM_SIGNED_API_URL_LENGTH() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function airnodeToSignedApiUrl(\\n address airnode\\n ) external view returns (string memory signedApiUrl);\\n\\n function dataFeedIdToDetails(\\n bytes32 dataFeedId\\n ) external view returns (bytes memory dataFeedDetails);\\n}\\n\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", @@ -1781,7 +1781,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", "label": "_owner", "offset": 0, diff --git a/deployments/zircuit-sepolia-testnet/Api3ReaderProxyV1Factory.json b/deployments/zircuit-sepolia-testnet/Api3ReaderProxyV1Factory.json index 41c91293..07ea30d7 100644 --- a/deployments/zircuit-sepolia-testnet/Api3ReaderProxyV1Factory.json +++ b/deployments/zircuit-sepolia-testnet/Api3ReaderProxyV1Factory.json @@ -1,5 +1,5 @@ { - "address": "0x0cA813F8757197a2a0b0b13871953800ed884082", + "address": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "abi": [ { "inputs": [ @@ -194,40 +194,40 @@ "type": "function" } ], - "transactionHash": "0x7e86c4b442ab60336d7d76c3e304c7cc14aa0d4173ac2d8a2d455b49264b6eef", + "transactionHash": "0x2b68c165f95212048f347e5ab0f5f3e5afb615fd903ed2fb6234af3168b57c34", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, - "transactionIndex": 1, + "transactionIndex": 0, "gasUsed": "1923129", - "logsBloom": "0x00000000000000000010000000000000000000000000000000800004000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000", - "blockHash": "0x28b024cd0a08c223603bd0b39fe79811c0fbcea5ae3ce7af41a98e56129ece29", - "transactionHash": "0x7e86c4b442ab60336d7d76c3e304c7cc14aa0d4173ac2d8a2d455b49264b6eef", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000808000000000000000000000000000000400000010000000000000000000000000000010000000000000000000000000000000040000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x24f626f8fdb40c91af8bc14abc4d929e97c90066a659e5e7a684cfb178449b76", + "transactionHash": "0x2b68c165f95212048f347e5ab0f5f3e5afb615fd903ed2fb6234af3168b57c34", "logs": [ { - "transactionIndex": 1, - "blockNumber": 15074476, - "transactionHash": "0x7e86c4b442ab60336d7d76c3e304c7cc14aa0d4173ac2d8a2d455b49264b6eef", - "address": "0x0cA813F8757197a2a0b0b13871953800ed884082", + "transactionIndex": 0, + "blockNumber": 5336247, + "transactionHash": "0x2b68c165f95212048f347e5ab0f5f3e5afb615fd903ed2fb6234af3168b57c34", + "address": "0x75F5d5f22eB175B50b3C305d4Dd0CAfec4390A21", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x000000000000000000000000f6d2675468989387e96127546e0cbc9a384fa418" + "0x00000000000000000000000073e5e41f981365cd92180b040e8532693d84b32d" ], "data": "0x", "logIndex": 0, - "blockHash": "0x28b024cd0a08c223603bd0b39fe79811c0fbcea5ae3ce7af41a98e56129ece29" + "blockHash": "0x24f626f8fdb40c91af8bc14abc4d929e97c90066a659e5e7a684cfb178449b76" } ], - "blockNumber": 15074476, - "cumulativeGasUsed": "1969162", + "blockNumber": 5336247, + "cumulativeGasUsed": "1923129", "status": 1, "byzantium": true }, - "args": ["0xF6d2675468989387e96127546e0CBC9A384fa418", "0x4DEA3120CDe98cC1535977a569bC109cB9Ea7afe"], + "args": ["0x73E5e41f981365cD92180B040e8532693D84B32D", "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8"], "numDeployments": 1, - "solcInputHash": "de732d772112aad69480d1de96d03ebc", + "solcInputHash": "896eff7865bf2e9ec8cfabe5ef3acb84", "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", @@ -305,7 +305,7 @@ "storageLayout": { "storage": [ { - "astId": 13488, + "astId": 13663, "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", "label": "_owner", "offset": 0, diff --git a/deployments/zircuit-sepolia-testnet/Api3ServerV1.json b/deployments/zircuit-sepolia-testnet/Api3ServerV1.json index 835a3bca..2f40d94b 100644 --- a/deployments/zircuit-sepolia-testnet/Api3ServerV1.json +++ b/deployments/zircuit-sepolia-testnet/Api3ServerV1.json @@ -1,5 +1,5 @@ { - "address": "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D", + "address": "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d", "abi": [ { "inputs": [ @@ -741,29 +741,29 @@ "type": "function" } ], - "transactionHash": "0x0a24b40be3de5413383849a557fba8879c725ba1af415caa04e52324ea2ba8b7", + "transactionHash": "0x1cf001780d0f7aeb5774709bf87a836121b18562a619d5d5e8007b537163b6a4", "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D", - "transactionIndex": 1, - "gasUsed": "2955452", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", + "contractAddress": null, + "transactionIndex": 0, + "gasUsed": "2961690", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0xe4543d3f595c151533da2505af5c0d0d6b7314007c39af3215861c6a9dc37257", - "transactionHash": "0x0a24b40be3de5413383849a557fba8879c725ba1af415caa04e52324ea2ba8b7", + "blockHash": "0xa0a61cdb7b4704fc5322eb2c030799c87d368db3f777dfe2771dbedd72f898d8", + "transactionHash": "0x1cf001780d0f7aeb5774709bf87a836121b18562a619d5d5e8007b537163b6a4", "logs": [], - "blockNumber": 7031232, - "cumulativeGasUsed": "3002329", + "blockNumber": 5336240, + "cumulativeGasUsed": "2961690", "status": 1, "byzantium": true }, "args": [ - "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", + "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1 admin", - "0xF6d2675468989387e96127546e0CBC9A384fa418" + "0x73E5e41f981365cD92180B040e8532693D84B32D" ], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessControlRegistry\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_adminRoleDescription\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"SetDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconSetWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedOevProxyBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oevBeneficiary\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_NAME_SETTER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameHashToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dapiNameSetterRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToDataFeedId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeeds\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oevProxyToBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevProxyToIdToDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHash\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiNameHash\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithDapiNameHashAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithId\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"readDataFeedWithIdAsOevProxy\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"updateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes[]\",\"name\":\"packedOevUpdateSignatures\",\"type\":\"bytes[]\"}],\"name\":\"updateOevProxyDataFeedWithSignedData\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"oevProxy\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_accessControlRegistry\":\"AccessControlRegistry contract address\",\"_adminRoleDescription\":\"Admin role description\",\"_manager\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToDataFeedId(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"_0\":\"Data feed ID\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"readDataFeedWithDapiNameHash(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"params\":{\"dapiNameHash\":\"dAPI name hash\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithId(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"setDapiName(bytes32,bytes32)\":{\"details\":\"While a data feed ID refers to a specific Beacon or Beacon set, dAPI names provide a more abstract interface for convenience. This means a dAPI name that was pointing to a Beacon can be pointed to a Beacon set, then another Beacon set, etc.\",\"params\":{\"dapiName\":\"Human-readable dAPI name\",\"dataFeedId\":\"Data feed ID the dAPI name will point to\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The signed data here is intentionally very general for practical reasons. It is less demanding on the signer to have data signed once and use that everywhere.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"details\":\"For when the data feed being updated is a Beacon set, an absolute majority of the Airnodes that power the respective Beacons must sign the aggregated value and timestamp. While doing so, the Airnodes should refer to data signed to update an absolute majority of the respective Beacons. The Airnodes should require the data to be fresh enough (e.g., at most 2 minutes-old), and tightly distributed around the resulting aggregation (e.g., within 1% deviation), and reject to provide an OEV proxy data feed update signature if these are not satisfied.\",\"params\":{\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"dataFeedId\":\"Data feed ID\",\"oevProxy\":\"OEV proxy that reads the data feed\",\"packedOevUpdateSignatures\":\"Packed OEV update signatures, which include the Airnode address, template ID and these signed with the OEV update hash\",\"timestamp\":\"Signature timestamp\",\"updateId\":\"Update ID\"}},\"withdraw(address)\":{\"details\":\"This does not require the caller to be the beneficiary because we expect that in most cases, the OEV beneficiary will be a contract that will not be able to make arbitrary calls. Our choice can be worked around by implementing a beneficiary proxy.\",\"params\":{\"oevProxy\":\"OEV proxy\"}}},\"title\":\"First version of the contract that API3 uses to serve data feeds\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_NAME_SETTER_ROLE_DESCRIPTION()\":{\"notice\":\"dAPI name setter role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameHashToDataFeedId(bytes32)\":{\"notice\":\"dAPI name hash mapped to the data feed ID\"},\"dapiNameSetterRole()\":{\"notice\":\"dAPI name setter role\"},\"dapiNameToDataFeedId(bytes32)\":{\"notice\":\"Returns the data feed ID the dAPI name is set to\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevProxyToBalance(address)\":{\"notice\":\"Accumulated OEV auction proceeds for the specific proxy\"},\"readDataFeedWithDapiNameHash(bytes32)\":{\"notice\":\"Reads the data feed with dAPI name hash\"},\"readDataFeedWithDapiNameHashAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with dAPI name hash\"},\"readDataFeedWithId(bytes32)\":{\"notice\":\"Reads the data feed with ID\"},\"readDataFeedWithIdAsOevProxy(bytes32)\":{\"notice\":\"Reads the data feed as the OEV proxy with ID\"},\"setDapiName(bytes32,bytes32)\":{\"notice\":\"Sets the data feed ID the dAPI name points to\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Updates a Beacon using data signed by the Airnode\"},\"updateOevProxyDataFeedWithSignedData(address,bytes32,bytes32,uint256,bytes,bytes[])\":{\"notice\":\"Updates a data feed that the OEV proxy reads using the aggregation signed by the absolute majority of the respective Airnodes for the specific bid\"},\"withdraw(address)\":{\"notice\":\"Withdraws the balance of the OEV proxy to the respective beneficiary account\"}},\"notice\":\"Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets, dAPIs, with optional OEV support for all of these. The base Beacons are only updateable using signed data, and the Beacon sets are updateable based on the Beacons, optionally using PSP. OEV proxy Beacons and Beacon sets are updateable using OEV-signed data. Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1.sol\":\"Api3ServerV1\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistryAdminned is ISelfMulticall {\\n function accessControlRegistry() external view returns (address);\\n\\n function adminRoleDescription() external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlRegistryAdminned.sol\\\";\\n\\ninterface IAccessControlRegistryAdminnedWithManager is\\n IAccessControlRegistryAdminned\\n{\\n function manager() external view returns (address);\\n\\n function adminRole() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDapiServer.sol\\\";\\nimport \\\"./BeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\n\\n/// @title First version of the contract that API3 uses to serve data feeds\\n/// @notice Api3ServerV1 serves data feeds in the form of Beacons, Beacon sets,\\n/// dAPIs, with optional OEV support for all of these.\\n/// The base Beacons are only updateable using signed data, and the Beacon sets\\n/// are updateable based on the Beacons, optionally using PSP. OEV proxy\\n/// Beacons and Beacon sets are updateable using OEV-signed data.\\n/// Api3ServerV1 does not support Beacons to be updated using RRP or PSP.\\ncontract Api3ServerV1 is\\n OevDapiServer,\\n BeaconUpdatesWithSignedData,\\n IApi3ServerV1\\n{\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) OevDapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithId(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHash(dapiNameHash);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithIdAsOevProxy(dataFeedId);\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view override returns (int224 value, uint32 timestamp) {\\n return _readDataFeedWithDapiNameHashAsOevProxy(dapiNameHash);\\n }\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _oevProxyToIdToDataFeed[proxy][dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n}\\n\",\"keccak256\":\"0xa9100269a781dbc267a1de630d333b475efc13cc87bf906de23c21a972a03f41\",\"license\":\"MIT\"},\"contracts/api3-server-v1/BeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IBeaconUpdatesWithSignedData.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that updates Beacons using signed data\\ncontract BeaconUpdatesWithSignedData is\\n DataFeedServer,\\n IBeaconUpdatesWithSignedData\\n{\\n using ECDSA for bytes32;\\n\\n /// @notice Updates a Beacon using data signed by the Airnode\\n /// @dev The signed data here is intentionally very general for practical\\n /// reasons. It is less demanding on the signer to have data signed once\\n /// and use that everywhere.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n require(\\n (\\n keccak256(abi.encodePacked(templateId, timestamp, data))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n beaconId = deriveBeaconId(airnode, templateId);\\n int224 updatedValue = processBeaconUpdate(beaconId, timestamp, data);\\n emit UpdatedBeaconWithSignedData(\\n beaconId,\\n updatedValue,\\n uint32(timestamp)\\n );\\n }\\n}\\n\",\"keccak256\":\"0xc5caacfa234d89c20a1e4493acbe6256c684558deb5a57a25cfb6314e99895be\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IDapiServer.sol\\\";\\n\\n/// @title Contract that serves dAPIs mapped to Beacons and Beacon sets\\n/// @notice Beacons and Beacon sets are addressed by immutable IDs. Although\\n/// this is trust-minimized, it requires users to manage the ID of the data\\n/// feed they are using. For when the user does not want to do this, dAPIs can\\n/// be used as an abstraction layer. By using a dAPI, the user delegates this\\n/// responsibility to dAPI management. It is important for dAPI management to\\n/// be restricted by consensus rules (by using a multisig or a DAO) and similar\\n/// trustless security mechanisms.\\ncontract DapiServer is\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IDapiServer\\n{\\n /// @notice dAPI name setter role description\\n string public constant override DAPI_NAME_SETTER_ROLE_DESCRIPTION =\\n \\\"dAPI name setter\\\";\\n\\n /// @notice dAPI name setter role\\n bytes32 public immutable override dapiNameSetterRole;\\n\\n /// @notice dAPI name hash mapped to the data feed ID\\n mapping(bytes32 => bytes32) public override dapiNameHashToDataFeedId;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminnedWithManager(\\n _accessControlRegistry,\\n _adminRoleDescription,\\n _manager\\n )\\n {\\n dapiNameSetterRole = _deriveRole(\\n _deriveAdminRole(manager),\\n DAPI_NAME_SETTER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @notice Sets the data feed ID the dAPI name points to\\n /// @dev While a data feed ID refers to a specific Beacon or Beacon set,\\n /// dAPI names provide a more abstract interface for convenience. This\\n /// means a dAPI name that was pointing to a Beacon can be pointed to a\\n /// Beacon set, then another Beacon set, etc.\\n /// @param dapiName Human-readable dAPI name\\n /// @param dataFeedId Data feed ID the dAPI name will point to\\n function setDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId\\n ) external override {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n dapiNameSetterRole,\\n msg.sender\\n ),\\n \\\"Sender cannot set dAPI name\\\"\\n );\\n dapiNameHashToDataFeedId[\\n keccak256(abi.encodePacked(dapiName))\\n ] = dataFeedId;\\n emit SetDapiName(dataFeedId, dapiName, msg.sender);\\n }\\n\\n /// @notice Returns the data feed ID the dAPI name is set to\\n /// @param dapiName dAPI name\\n /// @return Data feed ID\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view override returns (bytes32) {\\n return dapiNameHashToDataFeedId[keccak256(abi.encodePacked(dapiName))];\\n }\\n\\n /// @notice Reads the data feed with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x20e4e9b35f34df76875cc2cdc1524f98aaf7002022ea248d5dd7b8c8640716f4\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Derives the Beacon ID from the Airnode address and template ID\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @return beaconId Beacon ID\\n function deriveBeaconId(\\n address airnode,\\n bytes32 templateId\\n ) internal pure returns (bytes32 beaconId) {\\n beaconId = keccak256(abi.encodePacked(airnode, templateId));\\n }\\n\\n /// @notice Derives the Beacon set ID from the Beacon IDs\\n /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./OevDataFeedServer.sol\\\";\\nimport \\\"./DapiServer.sol\\\";\\nimport \\\"./interfaces/IOevDapiServer.sol\\\";\\n\\n/// @title Contract that serves OEV dAPIs\\ncontract OevDapiServer is OevDataFeedServer, DapiServer, IOevDapiServer {\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n ) DapiServer(_accessControlRegistry, _adminRoleDescription, _manager) {}\\n\\n /// @notice Reads the data feed as the OEV proxy with dAPI name hash\\n /// @param dapiNameHash dAPI name hash\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) internal view returns (int224 value, uint32 timestamp) {\\n bytes32 dataFeedId = dapiNameHashToDataFeedId[dapiNameHash];\\n require(dataFeedId != bytes32(0), \\\"dAPI name not set\\\");\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n}\\n\",\"keccak256\":\"0x7e506b1a9248563d4873159a40e5c2ce46ad0e24ad833d62610669a7dea8f137\",\"license\":\"MIT\"},\"contracts/api3-server-v1/OevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IOevDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./proxies/interfaces/IOevProxy.sol\\\";\\n\\n/// @title Contract that serves OEV Beacons and Beacon sets\\n/// @notice OEV Beacons and Beacon sets can be updated by the winner of the\\n/// respective OEV auctions. The beneficiary can withdraw the proceeds from\\n/// this contract.\\ncontract OevDataFeedServer is DataFeedServer, IOevDataFeedServer {\\n using ECDSA for bytes32;\\n\\n /// @notice Data feed with ID specific to the OEV proxy\\n /// @dev This implies that an update as a result of an OEV auction only\\n /// affects contracts that read through the respective proxy that the\\n /// auction was being held for\\n mapping(address => mapping(bytes32 => DataFeed))\\n internal _oevProxyToIdToDataFeed;\\n\\n /// @notice Accumulated OEV auction proceeds for the specific proxy\\n mapping(address => uint256) public override oevProxyToBalance;\\n\\n /// @notice Updates a data feed that the OEV proxy reads using the\\n /// aggregation signed by the absolute majority of the respective Airnodes\\n /// for the specific bid\\n /// @dev For when the data feed being updated is a Beacon set, an absolute\\n /// majority of the Airnodes that power the respective Beacons must sign\\n /// the aggregated value and timestamp. While doing so, the Airnodes should\\n /// refer to data signed to update an absolute majority of the respective\\n /// Beacons. The Airnodes should require the data to be fresh enough (e.g.,\\n /// at most 2 minutes-old), and tightly distributed around the resulting\\n /// aggregation (e.g., within 1% deviation), and reject to provide an OEV\\n /// proxy data feed update signature if these are not satisfied.\\n /// @param oevProxy OEV proxy that reads the data feed\\n /// @param dataFeedId Data feed ID\\n /// @param updateId Update ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param packedOevUpdateSignatures Packed OEV update signatures, which\\n /// include the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable override onlyValidTimestamp(timestamp) {\\n require(\\n timestamp > _oevProxyToIdToDataFeed[oevProxy][dataFeedId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n bytes32 oevUpdateHash = keccak256(\\n abi.encodePacked(\\n block.chainid,\\n address(this),\\n oevProxy,\\n dataFeedId,\\n updateId,\\n timestamp,\\n data,\\n msg.sender,\\n msg.value\\n )\\n );\\n int224 updatedValue = decodeFulfillmentData(data);\\n uint32 updatedTimestamp = uint32(timestamp);\\n uint256 beaconCount = packedOevUpdateSignatures.length;\\n if (beaconCount > 1) {\\n bytes32[] memory beaconIds = new bytes32[](beaconCount);\\n uint256 validSignatureCount;\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n bool signatureIsNotOmitted;\\n (\\n signatureIsNotOmitted,\\n beaconIds[ind]\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[ind]\\n );\\n if (signatureIsNotOmitted) {\\n unchecked {\\n validSignatureCount++;\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n // \\\"Greater than or equal to\\\" is not enough because full control\\n // of aggregation requires an absolute majority\\n require(\\n validSignatureCount > beaconCount / 2,\\n \\\"Not enough signatures\\\"\\n );\\n require(\\n dataFeedId == deriveBeaconSetId(beaconIds),\\n \\\"Beacon set ID mismatch\\\"\\n );\\n emit UpdatedOevProxyBeaconSetWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else if (beaconCount == 1) {\\n {\\n (\\n bool signatureIsNotOmitted,\\n bytes32 beaconId\\n ) = unpackAndValidateOevUpdateSignature(\\n oevUpdateHash,\\n packedOevUpdateSignatures[0]\\n );\\n require(signatureIsNotOmitted, \\\"Missing signature\\\");\\n require(dataFeedId == beaconId, \\\"Beacon ID mismatch\\\");\\n }\\n emit UpdatedOevProxyBeaconWithSignedData(\\n dataFeedId,\\n oevProxy,\\n updateId,\\n updatedValue,\\n updatedTimestamp\\n );\\n } else {\\n revert(\\\"Did not specify any Beacons\\\");\\n }\\n _oevProxyToIdToDataFeed[oevProxy][dataFeedId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n oevProxyToBalance[oevProxy] += msg.value;\\n }\\n\\n /// @notice Withdraws the balance of the OEV proxy to the respective\\n /// beneficiary account\\n /// @dev This does not require the caller to be the beneficiary because we\\n /// expect that in most cases, the OEV beneficiary will be a contract that\\n /// will not be able to make arbitrary calls. Our choice can be worked\\n /// around by implementing a beneficiary proxy.\\n /// @param oevProxy OEV proxy\\n function withdraw(address oevProxy) external override {\\n address oevBeneficiary = IOevProxy(oevProxy).oevBeneficiary();\\n require(oevBeneficiary != address(0), \\\"Beneficiary address zero\\\");\\n uint256 balance = oevProxyToBalance[oevProxy];\\n require(balance != 0, \\\"OEV proxy balance zero\\\");\\n oevProxyToBalance[oevProxy] = 0;\\n emit Withdrew(oevProxy, oevBeneficiary, balance);\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, ) = oevBeneficiary.call{value: balance}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n }\\n\\n /// @notice Reads the data feed as the OEV proxy with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage oevDataFeed = _oevProxyToIdToDataFeed[msg.sender][\\n dataFeedId\\n ];\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n if (oevDataFeed.timestamp > dataFeed.timestamp) {\\n (value, timestamp) = (oevDataFeed.value, oevDataFeed.timestamp);\\n } else {\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\n }\\n\\n /// @notice Called privately to unpack and validate the OEV update\\n /// signature\\n /// @param oevUpdateHash OEV update hash\\n /// @param packedOevUpdateSignature Packed OEV update signature, which\\n /// includes the Airnode address, template ID and these signed with the OEV\\n /// update hash\\n /// @return signatureIsNotOmitted If the signature is omitted in\\n /// `packedOevUpdateSignature`\\n /// @return beaconId Beacon ID\\n function unpackAndValidateOevUpdateSignature(\\n bytes32 oevUpdateHash,\\n bytes calldata packedOevUpdateSignature\\n ) private pure returns (bool signatureIsNotOmitted, bytes32 beaconId) {\\n (address airnode, bytes32 templateId, bytes memory signature) = abi\\n .decode(packedOevUpdateSignature, (address, bytes32, bytes));\\n beaconId = deriveBeaconId(airnode, templateId);\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(abi.encodePacked(oevUpdateHash, templateId))\\n .toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n signatureIsNotOmitted = true;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4e8557b0ab232ac721adfedecedb5e182548e04f64794854330d6251d98c538b\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDapiServer.sol\\\";\\nimport \\\"./IBeaconUpdatesWithSignedData.sol\\\";\\n\\ninterface IApi3ServerV1 is IOevDapiServer, IBeaconUpdatesWithSignedData {\\n function readDataFeedWithId(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHash(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithIdAsOevProxy(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function readDataFeedWithDapiNameHashAsOevProxy(\\n bytes32 dapiNameHash\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function dataFeeds(\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n function oevProxyToIdToDataFeed(\\n address proxy,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IBeaconUpdatesWithSignedData.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IBeaconUpdatesWithSignedData is IDataFeedServer {\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external returns (bytes32 beaconId);\\n}\\n\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IDapiServer is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event SetDapiName(\\n bytes32 indexed dataFeedId,\\n bytes32 indexed dapiName,\\n address sender\\n );\\n\\n function setDapiName(bytes32 dapiName, bytes32 dataFeedId) external;\\n\\n function dapiNameToDataFeedId(\\n bytes32 dapiName\\n ) external view returns (bytes32);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function DAPI_NAME_SETTER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function dapiNameSetterRole() external view returns (bytes32);\\n\\n function dapiNameHashToDataFeedId(\\n bytes32 dapiNameHash\\n ) external view returns (bytes32 dataFeedId);\\n}\\n\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IDataFeedServer is IExtendedSelfMulticall {\\n event UpdatedBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedBeaconSetWithBeacons(\\n bytes32 indexed beaconSetId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) external returns (bytes32 beaconSetId);\\n}\\n\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDapiServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOevDataFeedServer.sol\\\";\\nimport \\\"./IDapiServer.sol\\\";\\n\\ninterface IOevDapiServer is IOevDataFeedServer, IDapiServer {}\\n\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IOevDataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IDataFeedServer.sol\\\";\\n\\ninterface IOevDataFeedServer is IDataFeedServer {\\n event UpdatedOevProxyBeaconWithSignedData(\\n bytes32 indexed beaconId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event UpdatedOevProxyBeaconSetWithSignedData(\\n bytes32 indexed beaconSetId,\\n address indexed proxy,\\n bytes32 indexed updateId,\\n int224 value,\\n uint32 timestamp\\n );\\n\\n event Withdrew(\\n address indexed oevProxy,\\n address oevBeneficiary,\\n uint256 amount\\n );\\n\\n function updateOevProxyDataFeedWithSignedData(\\n address oevProxy,\\n bytes32 dataFeedId,\\n bytes32 updateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes[] calldata packedOevUpdateSignatures\\n ) external payable;\\n\\n function withdraw(address oevProxy) external;\\n\\n function oevProxyToBalance(\\n address oevProxy\\n ) external view returns (uint256 balance);\\n}\\n\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IOevProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOevProxy {\\n function oevBeneficiary() external view returns (address);\\n}\\n\",\"keccak256\":\"0xcd9962a465c96e85638eb40775da008f9c86a0ea0c50c7c5fcbb11c55f48fc22\",\"license\":\"MIT\"},\"contracts/utils/ExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.7;\\n\\nimport \\\"./SelfMulticall.sol\\\";\\nimport \\\"./interfaces/IExtendedSelfMulticall.sol\\\";\\n\\n/// @title Contract that extends SelfMulticall to fetch some of the global\\n/// variables\\n/// @notice Available global variables are limited to the ones that Airnode\\n/// tends to need\\ncontract ExtendedSelfMulticall is SelfMulticall, IExtendedSelfMulticall {\\n /// @notice Returns the chain ID\\n /// @return Chain ID\\n function getChainId() external view override returns (uint256) {\\n return block.chainid;\\n }\\n\\n /// @notice Returns the account balance\\n /// @param account Account address\\n /// @return Account balance\\n function getBalance(\\n address account\\n ) external view override returns (uint256) {\\n return account.balance;\\n }\\n\\n /// @notice Returns if the account contains bytecode\\n /// @dev An account not containing any bytecode does not indicate that it\\n /// is an EOA or it will not contain any bytecode in the future.\\n /// Contract construction and `SELFDESTRUCT` updates the bytecode at the\\n /// end of the transaction.\\n /// @return If the account contains bytecode\\n function containsBytecode(\\n address account\\n ) external view override returns (bool) {\\n return account.code.length > 0;\\n }\\n\\n /// @notice Returns the current block number\\n /// @return Current block number\\n function getBlockNumber() external view override returns (uint256) {\\n return block.number;\\n }\\n\\n /// @notice Returns the current block timestamp\\n /// @return Current block timestamp\\n function getBlockTimestamp() external view override returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Returns the current block basefee\\n /// @return Current block basefee\\n function getBlockBasefee() external view override returns (uint256) {\\n return block.basefee;\\n }\\n}\\n\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"contracts/utils/SelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./interfaces/ISelfMulticall.sol\\\";\\n\\n/// @title Contract that enables calls to the inheriting contract to be batched\\n/// @notice Implements two ways of batching, one requires none of the calls to\\n/// revert and the other tolerates individual calls reverting\\n/// @dev This implementation uses delegatecall for individual function calls.\\n/// Since delegatecall is a message call, it can only be made to functions that\\n/// are externally visible. This means that a contract cannot multicall its own\\n/// functions that use internal/private visibility modifiers.\\n/// Refer to OpenZeppelin's Multicall.sol for a similar implementation.\\ncontract SelfMulticall is ISelfMulticall {\\n /// @notice Batches calls to the inheriting contract and reverts as soon as\\n /// one of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function multicall(\\n bytes[] calldata data\\n ) external override returns (bytes[] memory returndata) {\\n uint256 callCount = data.length;\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n bool success;\\n // solhint-disable-next-line avoid-low-level-calls\\n (success, returndata[ind]) = address(this).delegatecall(data[ind]);\\n if (!success) {\\n bytes memory returndataWithRevertData = returndata[ind];\\n if (returndataWithRevertData.length > 0) {\\n // Adapted from OpenZeppelin's Address.sol\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndataWithRevertData)\\n revert(\\n add(32, returndataWithRevertData),\\n returndata_size\\n )\\n }\\n } else {\\n revert(\\\"Multicall: No revert string\\\");\\n }\\n }\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n\\n /// @notice Batches calls to the inheriting contract but does not revert if\\n /// any of the batched calls reverts\\n /// @param data Array of calldata of batched calls\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n function tryMulticall(\\n bytes[] calldata data\\n )\\n external\\n override\\n returns (bool[] memory successes, bytes[] memory returndata)\\n {\\n uint256 callCount = data.length;\\n successes = new bool[](callCount);\\n returndata = new bytes[](callCount);\\n for (uint256 ind = 0; ind < callCount; ) {\\n // solhint-disable-next-line avoid-low-level-calls\\n (successes[ind], returndata[ind]) = address(this).delegatecall(\\n data[ind]\\n );\\n unchecked {\\n ind++;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"contracts/utils/interfaces/IExtendedSelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ISelfMulticall.sol\\\";\\n\\ninterface IExtendedSelfMulticall is ISelfMulticall {\\n function getChainId() external view returns (uint256);\\n\\n function getBalance(address account) external view returns (uint256);\\n\\n function containsBytecode(address account) external view returns (bool);\\n\\n function getBlockNumber() external view returns (uint256);\\n\\n function getBlockTimestamp() external view returns (uint256);\\n\\n function getBlockBasefee() external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"contracts/utils/interfaces/ISelfMulticall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface ISelfMulticall {\\n function multicall(\\n bytes[] calldata data\\n ) external returns (bytes[] memory returndata);\\n\\n function tryMulticall(\\n bytes[] calldata data\\n ) external returns (bool[] memory successes, bytes[] memory returndata);\\n}\\n\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x6101206040523480156200001257600080fd5b50604051620039a2380380620039a283398101604081905262000035916200033a565b82828282828282828282826001600160a01b0382166200008f5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e25760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000086565b6001600160a01b0382166080526000620000fd8282620004a9565b508060405160200162000111919062000575565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001865760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000086565b6001600160a01b03811660c0526200019e81620001f8565b60e052505060c051620001e49150620001b790620001f8565b60408051808201909152601081526f3220a824903730b6b29039b2ba3a32b960811b602082015262000272565b610100525062000593975050505050505050565b60006200026c6200023d836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b6000620002ae83836040516020016200028c919062000575565b60405160208183030381529060405280519060200120620002b560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b0381168114620002f957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200033157818101518382015260200162000317565b50506000910152565b6000806000606084860312156200035057600080fd5b6200035b84620002e1565b60208501519093506001600160401b03808211156200037957600080fd5b818601915086601f8301126200038e57600080fd5b815181811115620003a357620003a3620002fe565b604051601f8201601f19908116603f01168101908382118183101715620003ce57620003ce620002fe565b81604052828152896020848701011115620003e857600080fd5b620003fb83602083016020880162000314565b80965050505050506200041160408501620002e1565b90509250925092565b600181811c908216806200042f57607f821691505b6020821081036200045057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a457600081815260208120601f850160051c810160208610156200047f5750805b601f850160051c820191505b81811015620004a0578281556001016200048b565b5050505b505050565b81516001600160401b03811115620004c557620004c5620002fe565b620004dd81620004d684546200041a565b8462000456565b602080601f831160018114620005155760008415620004fc5750858301515b600019600386901b1c1916600185901b178555620004a0565b600085815260208120601f198616915b82811015620005465788860151825594840194600190910190840162000525565b5085821015620005655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200058981846020870162000314565b9190910192915050565b60805160a05160c05160e051610100516133b8620005ea600039600081816104650152610e31015260006101cc01526000818161035f0152610de2015260005050600081816102530152610e5d01526133b86000f3fe6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", "deployedBytecode": "0x6080604052600436106101b55760003560e01c806367a7cfb7116100ec578063ac9650d81161008a578063e6ec76ac11610064578063e6ec76ac14610594578063f83ea108146105a7578063f8b2cb4f146105fe578063fce90be81461062657600080fd5b8063ac9650d814610527578063b62408a314610554578063cfaf49711461057457600080fd5b80638e6ddc27116100c65780638e6ddc271461049a5780638fca9ab9146104c757806391eed085146104e7578063a5fc076f1461050757600080fd5b806367a7cfb7146104125780637512449b14610453578063796b89b91461048757600080fd5b8063437b9116116101595780634c8f1d8d116101335780634c8f1d8d146103815780634dcc19fe146103a357806351cff8d9146103b65780635989eaeb146103d857600080fd5b8063437b9116146102f2578063472c22f114610320578063481c6a751461034d57600080fd5b80631ce9ae07116101955780631ce9ae071461024157806332be8f0b1461028d5780633408e470146102cc57806342cbb15c146102df57600080fd5b80629f2f3c146101ba578062aae33f146102015780631a0a0b3e14610221575b600080fd5b3480156101c657600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b34801561020d57600080fd5b506101ee61021c366004612c34565b61066f565b34801561022d57600080fd5b506101ee61023c366004612d31565b61079c565b34801561024d57600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101f8565b34801561029957600080fd5b506102ad6102a8366004612dc7565b610915565b60408051601b9390930b835263ffffffff9091166020830152016101f8565b3480156102d857600080fd5b50466101ee565b3480156102eb57600080fd5b50436101ee565b3480156102fe57600080fd5b5061031261030d366004612e25565b61092a565b6040516101f8929190612ef6565b34801561032c57600080fd5b506101ee61033b366004612dc7565b60046020526000908152604090205481565b34801561035957600080fd5b506102757f000000000000000000000000000000000000000000000000000000000000000081565b34801561038d57600080fd5b50610396610a90565b6040516101f89190612f4f565b3480156103af57600080fd5b50486101ee565b3480156103c257600080fd5b506103d66103d1366004612f62565b610b1e565b005b3480156103e457600080fd5b506104026103f3366004612f62565b6001600160a01b03163b151590565b60405190151581526020016101f8565b34801561041e57600080fd5b506102ad61042d366004612dc7565b600090815260016020526040902054601b81900b91600160e01b90910463ffffffff1690565b34801561045f57600080fd5b506101ee7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049357600080fd5b50426101ee565b3480156104a657600080fd5b506101ee6104b5366004612f62565b60036020526000908152604090205481565b3480156104d357600080fd5b506101ee6104e2366004612dc7565b610d45565b3480156104f357600080fd5b506103d6610502366004612f7f565b610d8a565b34801561051357600080fd5b506102ad610522366004612dc7565b610f96565b34801561053357600080fd5b50610547610542366004612e25565b610fa2565b6040516101f89190612fa1565b34801561056057600080fd5b506102ad61056f366004612dc7565b611123565b34801561058057600080fd5b506102ad61058f366004612dc7565b61112f565b6103d66105a2366004612fb4565b61113b565b3480156105b357600080fd5b506102ad6105c2366004613053565b6001600160a01b039190911660009081526002602090815260408083209383529290522054601b81900b91600160e01b90910463ffffffff1690565b34801561060a57600080fd5b506101ee610619366004612f62565b6001600160a01b03163190565b34801561063257600080fd5b506103966040518060400160405280601081526020017f64415049206e616d65207365747465720000000000000000000000000000000081525081565b600080600061067d846116c2565b9150915061068a84611864565b600081815260016020526040902080549194509063ffffffff808416600160e01b9092041603610710578054601b84810b91900b036107105760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526001835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b6000876001600160a01b031661081d84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060405161081792506107fc91508c908c908c908c9060200161307f565b60405160208183030381529060405280519060200120611894565b906118cf565b6001600160a01b0316146108735760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b50604080516bffffffffffffffffffffffff1960608a901b1660208083019190915260348083018a9052835180840390910181526054909201909252805191012060006108c2828888886118f5565b60408051601b83900b815263ffffffff8a16602082015291925083917f1ffdb573afe7273932e253bc4b8a17b9da4d37d7219ba05e464358975b36efb7910160405180910390a250979650505050505050565b60008061092183611a4a565b91509150915091565b606080828067ffffffffffffffff81111561094757610947612bed565b604051908082528060200260200182016040528015610970578160200160208202803683370190505b5092508067ffffffffffffffff81111561098c5761098c612bed565b6040519080825280602002602001820160405280156109bf57816020015b60608152602001906001900390816109aa5790505b50915060005b81811015610a8757308686838181106109e0576109e06130a0565b90506020028101906109f291906130b6565b604051610a009291906130fd565b600060405180830381855af49150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b50858381518110610a5357610a536130a0565b60200260200101858481518110610a6c57610a6c6130a0565b602090810291909101019190915290151590526001016109c5565b50509250929050565b60008054610a9d9061310d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac99061310d565b8015610b165780601f10610aeb57610100808354040283529160200191610b16565b820191906000526020600020905b815481529060010190602001808311610af957829003601f168201915b505050505081565b6000816001600160a01b0316630e15999d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b829190613141565b90506001600160a01b038116610bda5760405162461bcd60e51b815260206004820152601860248201527f42656e65666963696172792061646472657373207a65726f00000000000000006044820152606401610707565b6001600160a01b03821660009081526003602052604081205490819003610c435760405162461bcd60e51b815260206004820152601660248201527f4f45562070726f78792062616c616e6365207a65726f000000000000000000006044820152606401610707565b6001600160a01b0383811660008181526003602090815260408083209290925581519386168452830184905290917f0472be967f9a37138dfea1875af44784cafb79f92044ab33d7d6958eddd9ca6c910160405180910390a26000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610ce9576040519150601f19603f3d011682016040523d82523d6000602084013e610cee565b606091505b5050905080610d3f5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c207265766572746564000000000000000000000000006044820152606401610707565b50505050565b60006004600083604051602001610d5e91815260200190565b604051602081830303815290604052805190602001208152602001908152602001600020549050919050565b81610dd75760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610707565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ed057506040517f91d148540000000000000000000000000000000000000000000000000000000081527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015610eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed0919061315e565b610f1c5760405162461bcd60e51b815260206004820152601b60248201527f53656e6465722063616e6e6f74207365742064415049206e616d6500000000006044820152606401610707565b806004600084604051602001610f3491815260200190565b60408051601f1981840301815291815281516020928301208352828201939093529082016000209290925551338152839183917ff3a9aac9b6ac0f842cb5d9b3491cd5fc1b6a6778d97fd9529f587339865294f5910160405180910390a35050565b60008061092183611b7d565b6060818067ffffffffffffffff811115610fbe57610fbe612bed565b604051908082528060200260200182016040528015610ff157816020015b6060815260200190600190039081610fdc5790505b50915060005b8181101561111b57600030868684818110611014576110146130a0565b905060200281019061102691906130b6565b6040516110349291906130fd565b600060405180830381855af49150503d806000811461106f576040519150601f19603f3d011682016040523d82523d6000602084013e611074565b606091505b50858481518110611087576110876130a0565b60209081029190910101529050806111125760008483815181106110ad576110ad6130a0565b602002602001015190506000815111156110ca5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610707565b50600101610ff7565b505092915050565b60008061092183611bf5565b60008061092183611ccd565b8442610e1001811061118f5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b6001600160a01b03891660009081526002602090815260408083208b8452909152902054600160e01b900463ffffffff16861161120e5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b600046308b8b8b8b8b8b33346040516020016112339a99989796959493929190613180565b604051602081830303815290604052805190602001209050600061128c87878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b9050878460018111156114615760008167ffffffffffffffff8111156112b4576112b4612bed565b6040519080825280602002602001820160405280156112dd578160200160208202803683370190505b5090506000805b8381101561135057600061131b888c8c85818110611304576113046130a0565b905060200281019061131691906130b6565b611ea2565b85848151811061132d5761132d6130a0565b602090810291909101015290508015611347576001909201915b506001016112e4565b5061135c6002846131ff565b81116113aa5760405162461bcd60e51b815260206004820152601560248201527f4e6f7420656e6f756768207369676e61747572657300000000000000000000006044820152606401610707565b6113b382611864565b8e146114015760405162461bcd60e51b815260206004820152601660248201527f426561636f6e20736574204944206d69736d61746368000000000000000000006044820152606401610707565b8c8f6001600160a01b03168f7fdd29860e0772a39dea2ff0520d79f8efdffe48c903d6bbbc0c2cc65dc6568a7f8888604051611452929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a450506115cb565b8060010361158357600080611483868a8a6000818110611304576113046130a0565b91509150816114d45760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67207369676e61747572650000000000000000000000000000006044820152606401610707565b808e146115235760405162461bcd60e51b815260206004820152601260248201527f426561636f6e204944206d69736d6174636800000000000000000000000000006044820152606401610707565b50508a8d6001600160a01b03168d7fc856aaa4e639403f366ad68f07eb69bad4c044a35b0369c4ef1ea3a427a6a0ee8686604051611576929190601b9290920b825263ffffffff16602082015260400190565b60405180910390a46115cb565b60405162461bcd60e51b815260206004820152601b60248201527f446964206e6f74207370656369667920616e7920426561636f6e7300000000006044820152606401610707565b604051806040016040528084601b0b81526020018363ffffffff16815250600260008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008201518160000160006101000a8154816001600160e01b030219169083601b0b6001600160e01b03160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505034600360008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546116ae9190613213565b909155505050505050505050505050505050565b80516000908190600181116117195760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e73006044820152606401610707565b60008167ffffffffffffffff81111561173457611734612bed565b60405190808252806020026020018201604052801561175d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561177b5761177b612bed565b6040519080825280602002602001820160405280156117a4578160200160208202803683370190505b50905060005b83811015611845576000600160008984815181106117ca576117ca6130a0565b602090810291909101810151825281019190915260400160002080548551919250601b0b90859084908110611801576118016130a0565b602090810291909101015280548351600160e01b90910463ffffffff1690849084908110611831576118316130a0565b6020908102919091010152506001016117aa565b5061184f82611fa4565b945061185a81611fa4565b9350505050915091565b6000816040516020016118779190613234565b604051602081830303815290604052805190602001209050919050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611877565b60008060006118de85856120fd565b915091506118eb81612142565b5090505b92915050565b60008342610e1001811061194b5760405162461bcd60e51b815260206004820152601360248201527f54696d657374616d70206e6f742076616c6964000000000000000000000000006044820152606401610707565b61198a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9f92505050565b600087815260016020526040902054909250600160e01b900463ffffffff1685116119f75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d70000000000000006044820152606401610707565b50604080518082018252601b83900b815263ffffffff95861660208083019182526000988952600190529190962095519051909416600160e01b026001600160e01b039094169390931790935550919050565b600081815260046020526040812054819080611aa85760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b336000908152600260209081526040808320848452825280832060019092529091208054825463ffffffff600160e01b92839004811692909104161115611b06578154601b81900b9550600160e01b900463ffffffff169350611b1f565b8054601b81900b9550600160e01b900463ffffffff1693505b60008463ffffffff1611611b755760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b505050915091565b60008181526001602052604090208054601b81900b91600160e01b90910463ffffffff169081611bef5760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b50915091565b600081815260046020526040812054819080611c535760405162461bcd60e51b815260206004820152601160248201527f64415049206e616d65206e6f74207365740000000000000000000000000000006044820152606401610707565b60008181526001602052604090208054601b81900b9450600160e01b900463ffffffff16925082611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b5050915091565b336000908152600260209081526040808320848452825280832060019092528220805482548493929163ffffffff600160e01b918290048116919092049091161115611d30578154601b81900b9450600160e01b900463ffffffff169250611d49565b8054601b81900b9450600160e01b900463ffffffff1692505b60008363ffffffff1611611cc65760405162461bcd60e51b815260206004820152601960248201527f446174612066656564206e6f7420696e697469616c697a6564000000000000006044820152606401610707565b60008151602014611df25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f72726563740000000000000000006044820152606401610707565b600082806020019051810190611e089190613278565b90507fffffffff800000000000000000000000000000000000000000000000000000008112801590611e5657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6118ef5760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f720000000000000000006044820152606401610707565b600080808080611eb486880188613291565b925092509250611f0683836040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b93508051600014611f9957826001600160a01b0316611f3e826108178b866040516020016107fc929190918252602082015260400190565b6001600160a01b031614611f945760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610707565b600194505b505050935093915050565b80516000906009811161207d57611fba836122aa565b611fc5600282613342565b600103611ff85782611fd86002836131ff565b81518110611fe857611fe86130a0565b6020026020010151915050919050565b8060000361200857612008613356565b612076836001600284040381518110612023576120236130a0565b6020026020010151846002848161203c5761203c6131e9565b048151811061204d5761204d6130a0565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b9392505050565b612088600282613342565b6001036120a45782611fd88161209f6002856131ff565b6127bc565b6000806120b785600160028604036127e9565b80925081935050506120ee8583815181106120d4576120d46130a0565b602002602001015186838151811061204d5761204d6130a0565b95945050505050565b50919050565b60008082516041036121335760208301516040840151606085015160001a6121278782858561281e565b9450945050505061213b565b506000905060025b9250929050565b60008160048111156121565761215661336c565b0361215e5750565b60018160048111156121725761217261336c565b036121bf5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610707565b60028160048111156121d3576121d361336c565b036122205760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610707565b60038160048111156122345761223461336c565b036122a75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610707565b50565b805160098111156122fd5760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f7274000000000000000000006044820152606401610707565b600681101561240857600481101561235757806003036123425761232482600060016128e2565b61233182600160026128e2565b61233e82600060016128e2565b5050565b8060020361233e5761233e82600060016128e2565b806005036123d45761236c82600160026128e2565b61237982600360046128e2565b61238682600160036128e2565b61239382600060026128e2565b6123a082600260046128e2565b6123ad82600060036128e2565b6123ba82600060016128e2565b6123c782600260036128e2565b61233e82600160026128e2565b6123e182600060016128e2565b6123ee82600260036128e2565b6123fb82600160036128e2565b6123c782600060026128e2565b600881101561258557806007036124e95761242682600160026128e2565b61243382600360046128e2565b61244082600560066128e2565b61244d82600060026128e2565b61245a82600460066128e2565b61246782600360056128e2565b61247482600260066128e2565b61248182600160056128e2565b61248e82600060046128e2565b61249b82600260056128e2565b6124a882600060036128e2565b6124b582600260046128e2565b6124c282600160036128e2565b6124cf82600060016128e2565b6124dc82600260036128e2565b61233e82600460056128e2565b6124f682600060016128e2565b61250382600260036128e2565b61251082600460056128e2565b61251d82600160036128e2565b61252a82600360056128e2565b61253782600160036128e2565b61254482600260046128e2565b61255182600060026128e2565b61255e82600260046128e2565b61256b82600360046128e2565b61257882600160026128e2565b61233e82600260036128e2565b806009036126b85761259a82600160086128e2565b6125a782600260076128e2565b6125b482600360066128e2565b6125c182600460056128e2565b6125ce82600160046128e2565b6125db82600560086128e2565b6125e882600060026128e2565b6125f582600660076128e2565b61260282600260066128e2565b61260f82600760086128e2565b61261c82600060036128e2565b61262982600460056128e2565b61263682600060016128e2565b61264382600360056128e2565b61265082600660076128e2565b61265d82600260046128e2565b61266a82600160036128e2565b61267782600560076128e2565b61268482600460066128e2565b61269182600160026128e2565b61269e82600360046128e2565b6126ab82600560066128e2565b6124cf82600760086128e2565b6126c582600060076128e2565b6126d282600160066128e2565b6126df82600260056128e2565b6126ec82600360046128e2565b6126f982600060036128e2565b61270682600460076128e2565b61271382600160026128e2565b61272082600560066128e2565b61272d82600060016128e2565b61273a82600260036128e2565b61274782600460056128e2565b61275482600660076128e2565b61276182600360056128e2565b61276e82600260046128e2565b61277b82600160026128e2565b61278882600360046128e2565b61279582600560066128e2565b6127a282600260036128e2565b6127af82600460056128e2565b61233e82600360046128e2565b8151600090806127ce576127ce613356565b6127e084600060018403866000612990565b50949350505050565b815160009081906001811161280057612800613356565b61281285600060018403876001612990565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561285557506000905060036128d9565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128d2576000600192509250506128d9565b9150600090505b94509492505050565b8281815181106128f4576128f46130a0565b602002602001015183838151811061290e5761290e6130a0565b6020026020010151131561298b5782818151811061292e5761292e6130a0565b6020026020010151838381518110612948576129486130a0565b6020026020010151848481518110612962576129626130a0565b6020026020010185848151811061297b5761297b6130a0565b6020908102919091010191909152525b505050565b6000808486036129a557508290506000612a5c565b60006129b2888888612a66565b9050808510156129d5576129cd888860018403886000612990565b5092506129f2565b808511156129ee576129cd888260010188886000612990565b8092505b8315612a5a57875160018401925060028401905b80821015612a5757898481518110612a2057612a206130a0565b60200260200101518a8381518110612a3a57612a3a6130a0565b60200260200101511215612a4c578193505b600190910190612a06565b50505b505b9550959350505050565b6000818303612a76575081612076565b6000848481518110612a8a57612a8a6130a0565b6020026020010151905060008490508360010192505b855160019091019081108015612ace575081868281518110612ac457612ac46130a0565b6020026020010151125b612aa0575b82806001900393505081868481518110612aef57612aef6130a0565b602002602001015113612ad357828110612b7a57858381518110612b1557612b156130a0565b6020026020010151868681518110612b2f57612b2f6130a0565b6020026020010151878781518110612b4957612b496130a0565b60200260200101888681518110612b6257612b626130a0565b60200260200101828152508281525050505050612076565b858381518110612b8c57612b8c6130a0565b6020026020010151868281518110612ba657612ba66130a0565b6020026020010151878381518110612bc057612bc06130a0565b60200260200101888681518110612bd957612bd96130a0565b602090810291909101019190915252612aa0565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c2c57612c2c612bed565b604052919050565b60006020808385031215612c4757600080fd5b823567ffffffffffffffff80821115612c5f57600080fd5b818501915085601f830112612c7357600080fd5b813581811115612c8557612c85612bed565b8060051b9150612c96848301612c03565b8181529183018401918481019088841115612cb057600080fd5b938501935b83851015612cce57843582529385019390850190612cb5565b98975050505050505050565b6001600160a01b03811681146122a757600080fd5b60008083601f840112612d0157600080fd5b50813567ffffffffffffffff811115612d1957600080fd5b60208301915083602082850101111561213b57600080fd5b600080600080600080600060a0888a031215612d4c57600080fd5b8735612d5781612cda565b96506020880135955060408801359450606088013567ffffffffffffffff80821115612d8257600080fd5b612d8e8b838c01612cef565b909650945060808a0135915080821115612da757600080fd5b50612db48a828b01612cef565b989b979a50959850939692959293505050565b600060208284031215612dd957600080fd5b5035919050565b60008083601f840112612df257600080fd5b50813567ffffffffffffffff811115612e0a57600080fd5b6020830191508360208260051b850101111561213b57600080fd5b60008060208385031215612e3857600080fd5b823567ffffffffffffffff811115612e4f57600080fd5b61281285828601612de0565b6000815180845260005b81811015612e8157602081850181015186830182015201612e65565b506000602082860101526020601f19601f83011685010191505092915050565b600081518084526020808501808196508360051b8101915082860160005b85811015612ee9578284038952612ed7848351612e5b565b98850198935090840190600101612ebf565b5091979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015612f31578151151584529284019290840190600101612f13565b50505083810382850152612f458186612ea1565b9695505050505050565b6020815260006120766020830184612e5b565b600060208284031215612f7457600080fd5b813561207681612cda565b60008060408385031215612f9257600080fd5b50508035926020909101359150565b6020815260006120766020830184612ea1565b60008060008060008060008060c0898b031215612fd057600080fd5b8835612fdb81612cda565b9750602089013596506040890135955060608901359450608089013567ffffffffffffffff8082111561300d57600080fd5b6130198c838d01612cef565b909650945060a08b013591508082111561303257600080fd5b5061303f8b828c01612de0565b999c989b5096995094979396929594505050565b6000806040838503121561306657600080fd5b823561307181612cda565b946020939093013593505050565b84815283602082015281836040830137600091016040019081529392505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126130cd57600080fd5b83018035915067ffffffffffffffff8211156130e857600080fd5b60200191503681900382131561213b57600080fd5b8183823760009101908152919050565b600181811c9082168061312157607f821691505b6020821081036120f757634e487b7160e01b600052602260045260246000fd5b60006020828403121561315357600080fd5b815161207681612cda565b60006020828403121561317057600080fd5b8151801515811461207657600080fd5b8a815260006bffffffffffffffffffffffff19808c60601b166020840152808b60601b166034840152896048840152886068840152876088840152858760a885013760609490941b909316930160a881019390935260bc8301525060dc01979650505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261320e5761320e6131e9565b500490565b808201808211156118ef57634e487b7160e01b600052601160045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561326c57835183529284019291840191600101613250565b50909695505050505050565b60006020828403121561328a57600080fd5b5051919050565b6000806000606084860312156132a657600080fd5b83356132b181612cda565b92506020848101359250604085013567ffffffffffffffff808211156132d657600080fd5b818701915087601f8301126132ea57600080fd5b8135818111156132fc576132fc612bed565b61330e601f8201601f19168501612c03565b9150808252888482850101111561332457600080fd5b80848401858401376000848284010152508093505050509250925092565b600082613351576133516131e9565b500690565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfea2646970667358221220693313c61a998d79d0e9b250367bd14ac439bd3d1d1f36bf50317fc99059456d64736f6c63430008110033", @@ -1018,23 +1018,23 @@ "type": "t_string_storage" }, { - "astId": 4803, + "astId": 1797, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "_dataFeeds", "offset": 0, "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" + "type": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" }, { - "astId": 6904, + "astId": 3898, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "_oevProxyToIdToDataFeed", "offset": 0, "slot": "2", - "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))" + "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)1791_storage))" }, { - "astId": 6910, + "astId": 3904, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "oevProxyToBalance", "offset": 0, @@ -1042,7 +1042,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 4625, + "astId": 1619, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "dapiNameHashToDataFeedId", "offset": 0, @@ -1066,12 +1066,12 @@ "label": "int224", "numberOfBytes": "28" }, - "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)4797_storage))": { + "t_mapping(t_address,t_mapping(t_bytes32,t_struct(DataFeed)1791_storage))": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => mapping(bytes32 => struct DataFeedServer.DataFeed))", "numberOfBytes": "32", - "value": "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)" + "value": "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)" }, "t_mapping(t_address,t_uint256)": { "encoding": "mapping", @@ -1087,24 +1087,24 @@ "numberOfBytes": "32", "value": "t_bytes32" }, - "t_mapping(t_bytes32,t_struct(DataFeed)4797_storage)": { + "t_mapping(t_bytes32,t_struct(DataFeed)1791_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", "numberOfBytes": "32", - "value": "t_struct(DataFeed)4797_storage" + "value": "t_struct(DataFeed)1791_storage" }, "t_string_storage": { "encoding": "bytes", "label": "string", "numberOfBytes": "32" }, - "t_struct(DataFeed)4797_storage": { + "t_struct(DataFeed)1791_storage": { "encoding": "inplace", "label": "struct DataFeedServer.DataFeed", "members": [ { - "astId": 4794, + "astId": 1788, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "value", "offset": 0, @@ -1112,7 +1112,7 @@ "type": "t_int224" }, { - "astId": 4796, + "astId": 1790, "contract": "contracts/api3-server-v1/Api3ServerV1.sol:Api3ServerV1", "label": "timestamp", "offset": 28, diff --git a/deployments/zircuit-sepolia-testnet/Api3ServerV1OevExtension.json b/deployments/zircuit-sepolia-testnet/Api3ServerV1OevExtension.json index a32f903c..d775ebbb 100644 --- a/deployments/zircuit-sepolia-testnet/Api3ServerV1OevExtension.json +++ b/deployments/zircuit-sepolia-testnet/Api3ServerV1OevExtension.json @@ -1,5 +1,5 @@ { - "address": "0x4DEA3120CDe98cC1535977a569bC109cB9Ea7afe", + "address": "0x4B69e2Bc4a2835a07104106DFD18D03548ebC4D8", "abi": [ { "inputs": [ @@ -646,27 +646,27 @@ "type": "receive" } ], - "transactionHash": "0x19a3508bb177814234588e26ba60fc76d3b1e21b18c7fc0ff3ea38be78b2b37b", + "transactionHash": "0x2021c2dd86fa963c818502e5e80852e0b1902f29f4259dc691c677de07c602e2", "receipt": { "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", "contractAddress": null, - "transactionIndex": 1, + "transactionIndex": 0, "gasUsed": "3262084", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x844af5be338b3450651d0e9b039b8b310be5a265c6dbb7df203680544d1cd907", - "transactionHash": "0x19a3508bb177814234588e26ba60fc76d3b1e21b18c7fc0ff3ea38be78b2b37b", + "blockHash": "0xfd7b03919fbf7f91e4d54cbecdf956272b0faf77c96fdbcb07e518d818f65392", + "transactionHash": "0x2021c2dd86fa963c818502e5e80852e0b1902f29f4259dc691c677de07c602e2", "logs": [], - "blockNumber": 15074472, - "cumulativeGasUsed": "3308105", + "blockNumber": 5336244, + "cumulativeGasUsed": "3262084", "status": 1, "byzantium": true }, "args": [ - "0x2ab9f26E18B64848cd349582ca3B55c2d06f507d", + "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", "Api3ServerV1OevExtension admin", - "0xF6d2675468989387e96127546e0CBC9A384fa418", - "0x55Cf1079a115029a879ec3A11Ba5D453272eb61D" + "0x73E5e41f981365cD92180B040e8532693D84B32D", + "0xA4C9a00aC42c3F8C81421eB7ad44bA076e70375d" ], "numDeployments": 1, "solcInputHash": "69404b24fc871d37136875d5dfb0242e", diff --git a/deployments/zircuit-sepolia-testnet/GnosisSafeWithoutProxy.json b/deployments/zircuit-sepolia-testnet/GnosisSafeWithoutProxy.json index 7e3aa2b6..3f120cdc 100644 --- a/deployments/zircuit-sepolia-testnet/GnosisSafeWithoutProxy.json +++ b/deployments/zircuit-sepolia-testnet/GnosisSafeWithoutProxy.json @@ -1044,6 +1044,36 @@ "type": "receive" } ], + "transactionHash": "0x2b9de070a8d534b7e6bb3402ea43d0b541262fd25d8dd543d421d3f0be7d90f9", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", + "contractAddress": null, + "transactionIndex": 1, + "gasUsed": "3029150", + "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000100000000000000000000010000000000000000000000000100000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000", + "blockHash": "0x736ce361ad35f96ce978af6f4b845c138458600eb5797dd02a1185e7c8d99ceb", + "transactionHash": "0x2b9de070a8d534b7e6bb3402ea43d0b541262fd25d8dd543d421d3f0be7d90f9", + "logs": [ + { + "transactionIndex": 1, + "blockNumber": 5336223, + "transactionHash": "0x2b9de070a8d534b7e6bb3402ea43d0b541262fd25d8dd543d421d3f0be7d90f9", + "address": "0x795E7417b5e9c70037654480F0371e202b48bC77", + "topics": [ + "0x141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a8", + "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000042a18bab999803bba3c7186dc725e567ed28d95500000000000000000000000080efdd3bb15f2108c407049c5575490858800d4700000000000000000000000056afb8383b3e8db331e711e1183f195ced7b9faf0000000000000000000000005b2962121b4334fe563f7062fea975f51313ede300000000000000000000000009dea15d4e1f82787e181f23788dc3f4b3d3dae400000000000000000000000070cc8f7c40a8e65a73b804ad1c49f39d40ea3050000000000000000000000000433171908d5bab4ac0e860c64d1333f51a310321000000000000000000000000918350a01a4c259fbcc94c6fb2ca49a3753bdb86", + "logIndex": 0, + "blockHash": "0x736ce361ad35f96ce978af6f4b845c138458600eb5797dd02a1185e7c8d99ceb" + } + ], + "blockNumber": 5336223, + "cumulativeGasUsed": "3171801", + "status": 1, + "byzantium": true + }, "args": [ [ "0x42A18Bab999803BBa3c7186DC725E567Ed28D955", diff --git a/deployments/zircuit-sepolia-testnet/OwnableCallForwarder.json b/deployments/zircuit-sepolia-testnet/OwnableCallForwarder.json index ec98f0e5..0ea4f27b 100644 --- a/deployments/zircuit-sepolia-testnet/OwnableCallForwarder.json +++ b/deployments/zircuit-sepolia-testnet/OwnableCallForwarder.json @@ -1,5 +1,5 @@ { - "address": "0xF6d2675468989387e96127546e0CBC9A384fa418", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "abi": [ { "inputs": [ @@ -89,54 +89,54 @@ "type": "function" } ], - "transactionHash": "0x348c0feac187d5f25c4d55a290dd95caed951bb486f39c499eca83252542e3dd", + "transactionHash": "0x890edbee1dda9dd75fb7bfcb583d8e10ac84860083eaf58313d6aada030e973b", "receipt": { - "to": null, - "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", - "contractAddress": "0xF6d2675468989387e96127546e0CBC9A384fa418", - "transactionIndex": 1, - "gasUsed": "409870", - "logsBloom": "0x00000080000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000020000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000010000000000000000000000000000200000000000000000000020000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x0528abdc84a61ba30c288e379d124207aefc2c51d25dce93161f843966ea7a0b", - "transactionHash": "0x348c0feac187d5f25c4d55a290dd95caed951bb486f39c499eca83252542e3dd", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x35765f861B59fb39375116d9A3f287eA07C84bde", + "contractAddress": null, + "transactionIndex": 0, + "gasUsed": "410818", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000408000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000008000000000000000000001000000000000000000000020000000001000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000080000000000000000000010000000000", + "blockHash": "0xb08f2ab12a0043277eb06f377a90c58e719e6b4b585cfc2b8a6c6495e37ddc78", + "transactionHash": "0x890edbee1dda9dd75fb7bfcb583d8e10ac84860083eaf58313d6aada030e973b", "logs": [ { - "transactionIndex": 1, - "blockNumber": 7031221, - "transactionHash": "0x348c0feac187d5f25c4d55a290dd95caed951bb486f39c499eca83252542e3dd", - "address": "0xF6d2675468989387e96127546e0CBC9A384fa418", + "transactionIndex": 0, + "blockNumber": 5336229, + "transactionHash": "0x890edbee1dda9dd75fb7bfcb583d8e10ac84860083eaf58313d6aada030e973b", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" + "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c" ], "data": "0x", "logIndex": 0, - "blockHash": "0x0528abdc84a61ba30c288e379d124207aefc2c51d25dce93161f843966ea7a0b" + "blockHash": "0xb08f2ab12a0043277eb06f377a90c58e719e6b4b585cfc2b8a6c6495e37ddc78" }, { - "transactionIndex": 1, - "blockNumber": 7031221, - "transactionHash": "0x348c0feac187d5f25c4d55a290dd95caed951bb486f39c499eca83252542e3dd", - "address": "0xF6d2675468989387e96127546e0CBC9A384fa418", + "transactionIndex": 0, + "blockNumber": 5336229, + "transactionHash": "0x890edbee1dda9dd75fb7bfcb583d8e10ac84860083eaf58313d6aada030e973b", + "address": "0x73E5e41f981365cD92180B040e8532693D84B32D", "topics": [ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1", - "0x00000000000000000000000007b589f06bd0a5324c4e2376d66d2f4f25921de1" + "0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c", + "0x000000000000000000000000795e7417b5e9c70037654480f0371e202b48bc77" ], "data": "0x", "logIndex": 1, - "blockHash": "0x0528abdc84a61ba30c288e379d124207aefc2c51d25dce93161f843966ea7a0b" + "blockHash": "0xb08f2ab12a0043277eb06f377a90c58e719e6b4b585cfc2b8a6c6495e37ddc78" } ], - "blockNumber": 7031221, - "cumulativeGasUsed": "456747", + "blockNumber": 5336229, + "cumulativeGasUsed": "410818", "status": 1, "byzantium": true }, - "args": ["0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1"], + "args": ["0x795E7417b5e9c70037654480F0371e202b48bC77"], "numDeployments": 1, - "solcInputHash": "3a117f16a34802d954fa34c380e0ceb3", + "solcInputHash": "69404b24fc871d37136875d5dfb0242e", "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"forwardTarget\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"forwardedCalldata\",\"type\":\"bytes\"}],\"name\":\"forwardCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"returnedData\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_owner\":\"Owner address\"}},\"forwardCall(address,bytes)\":{\"params\":{\"forwardTarget\":\"Target address that the calldata will be forwarded to\",\"forwardedCalldata\":\"Calldata to be forwarded to the target address\"},\"returns\":{\"returnedData\":\"Data returned by the forwarded call\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Contract that forwards the calls that its owner sends\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"forwardCall(address,bytes)\":{\"notice\":\"Forwards the calldata and the value to the target address if the sender is the owner and returns the data\"}},\"notice\":\"AccessControlRegistry users that want their access control tables to be transferrable (e.g., a DAO) will use this forwarder instead of interacting with it directly. There are cases where this transferrability is not desired, e.g., if the user is an Airnode and is immutably associated with a single address, in which case the manager will interact with AccessControlRegistry directly.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/access/OwnableCallForwarder.sol\":\"OwnableCallForwarder\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/OwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"./interfaces/IOwnableCallForwarder.sol\\\";\\n\\n/// @title Contract that forwards the calls that its owner sends\\n/// @notice AccessControlRegistry users that want their access control tables\\n/// to be transferrable (e.g., a DAO) will use this forwarder instead of\\n/// interacting with it directly. There are cases where this transferrability\\n/// is not desired, e.g., if the user is an Airnode and is immutably associated\\n/// with a single address, in which case the manager will interact with\\n/// AccessControlRegistry directly.\\ncontract OwnableCallForwarder is Ownable, IOwnableCallForwarder {\\n /// @param _owner Owner address\\n constructor(address _owner) {\\n transferOwnership(_owner);\\n }\\n\\n /// @notice Forwards the calldata and the value to the target address if\\n /// the sender is the owner and returns the data\\n /// @param forwardTarget Target address that the calldata will be forwarded\\n /// to\\n /// @param forwardedCalldata Calldata to be forwarded to the target address\\n /// @return returnedData Data returned by the forwarded call\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable override onlyOwner returns (bytes memory returnedData) {\\n returnedData = Address.functionCallWithValue(\\n forwardTarget,\\n forwardedCalldata,\\n msg.value\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8ae5a7cd680c844985a7f74550e5144ac5250e25d30bbee35b68d23d77c02e31\",\"license\":\"MIT\"},\"contracts/access/interfaces/IOwnableCallForwarder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IOwnableCallForwarder {\\n function forwardCall(\\n address forwardTarget,\\n bytes calldata forwardedCalldata\\n ) external payable returns (bytes memory returnedData);\\n}\\n\",\"keccak256\":\"0x13e5e17e12d5d907f72ac1f52d88592903755edafe1162b7cb68700c93d1ba1c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"}},\"version\":1}", "bytecode": "0x608060405234801561001057600080fd5b5060405161079038038061079083398101604081905261002f91610171565b61003833610047565b61004181610097565b506101a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61009f610115565b6001600160a01b0381166101095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011281610047565b50565b6000546001600160a01b0316331461016f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610100565b565b60006020828403121561018357600080fd5b81516001600160a01b038116811461019a57600080fd5b9392505050565b6105e0806101b06000396000f3fe60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", "deployedBytecode": "0x60806040526004361061003f5760003560e01c806322bee49414610044578063715018a61461006d5780638da5cb5b14610084578063f2fde38b146100ac575b600080fd5b61005761005236600461045d565b6100cc565b6040516100649190610530565b60405180910390f35b34801561007957600080fd5b50610082610120565b005b34801561009057600080fd5b506000546040516001600160a01b039091168152602001610064565b3480156100b857600080fd5b506100826100c736600461054a565b610134565b60606100d66101c9565b6101188484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250349250610223915050565b949350505050565b6101286101c9565b6101326000610249565b565b61013c6101c9565b6001600160a01b0381166101bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6101c681610249565b50565b6000546001600160a01b031633146101325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b4565b6060610118848484604051806060016040528060298152602001610582602991396102b1565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060824710156103295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101b4565b600080866001600160a01b031685876040516103459190610565565b60006040518083038185875af1925050503d8060008114610382576040519150601f19603f3d011682016040523d82523d6000602084013e610387565b606091505b5091509150610398878383876103a3565b979650505050505050565b6060831561041257825160000361040b576001600160a01b0385163b61040b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101b4565b5081610118565b61011883838151156104275781518083602001fd5b8060405162461bcd60e51b81526004016101b49190610530565b80356001600160a01b038116811461045857600080fd5b919050565b60008060006040848603121561047257600080fd5b61047b84610441565b9250602084013567ffffffffffffffff8082111561049857600080fd5b818601915086601f8301126104ac57600080fd5b8135818111156104bb57600080fd5b8760208285010111156104cd57600080fd5b6020830194508093505050509250925092565b60005b838110156104fb5781810151838201526020016104e3565b50506000910152565b6000815180845261051c8160208601602086016104e0565b601f01601f19169290920160200192915050565b6020815260006105436020830184610504565b9392505050565b60006020828403121561055c57600080fd5b61054382610441565b600082516105778184602087016104e0565b919091019291505056fe416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a26469706673582212209bc00d30ca9753335445fb76197730f010383979aa0fd4b393e2e8826680071064736f6c63430008110033", @@ -183,7 +183,7 @@ "storageLayout": { "storage": [ { - "astId": 13220, + "astId": 7408, "contract": "contracts/access/OwnableCallForwarder.sol:OwnableCallForwarder", "label": "_owner", "offset": 0, diff --git a/example.env b/example.env index 04924fc3..d315d9ff 100644 --- a/example.env +++ b/example.env @@ -21,7 +21,6 @@ ETHERSCAN_API_KEY_ETHEREUM= ETHERSCAN_API_KEY_FRAXTAL_HOLESKY_TESTNET= ETHERSCAN_API_KEY_FRAXTAL= ETHERSCAN_API_KEY_GNOSIS= -ETHERSCAN_API_KEY_KROMA_SEPOLIA_TESTNET= ETHERSCAN_API_KEY_LINEA_SEPOLIA_TESTNET= ETHERSCAN_API_KEY_LINEA= ETHERSCAN_API_KEY_MANTLE_SEPOLIA_TESTNET= @@ -47,5 +46,4 @@ ETHERSCAN_API_KEY_UNICHAIN_SEPOLIA_TESTNET= ETHERSCAN_API_KEY_UNICHAIN= ETHERSCAN_API_KEY_WORLD_SEPOLIA_TESTNET= ETHERSCAN_API_KEY_WORLD= -ETHERSCAN_API_KEY_ZIRCUIT_SEPOLIA_TESTNET= ETHERSCAN_API_KEY_ZIRCUIT= diff --git a/package.json b/package.json index 05918e17..dac6c06c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "oev" ], "license": "MIT", - "version": "23.1.0", + "version": "26.2.1", "engines": { "node": ">=20.17.9" }, @@ -106,7 +106,7 @@ "ethers": "^6.13.2", "viem": "^2.23.2", "yargs": "^17.7.2", - "zod": "^3.24.2" + "zod": "^3.25.76" }, "packageManager": "pnpm@9.15.2" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a200dc8b..29a636a8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,13 +13,13 @@ importers: version: 6.13.4 viem: specifier: ^2.23.2 - version: 2.23.2(typescript@5.8.3)(zod@3.24.2) + version: 2.23.2(typescript@5.8.3)(zod@3.25.76) yargs: specifier: ^17.7.2 version: 17.7.2 zod: - specifier: ^3.24.2 - version: 3.24.2 + specifier: ^3.25.76 + version: 3.25.76 devDependencies: '@api3/eslint-plugin-commons': specifier: ^3.0.0 @@ -41,7 +41,7 @@ importers: version: 1.0.12(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)) '@nomicfoundation/hardhat-toolbox': specifier: ^4.0.0 - version: 4.0.0(ampjhdpvrmhekrb6rotz73h5ma) + version: 4.0.0(oi4zkjkinfcwdsolqlvmpdyvpq) '@nomicfoundation/hardhat-verify': specifier: ^2.0.14 version: 2.0.14(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)) @@ -95,7 +95,7 @@ importers: version: 1.0.2 hardhat-gas-reporter: specifier: ^2.3.0 - version: 2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.24.2) + version: 2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.25.76) jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.19.0)(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3)) @@ -4826,8 +4826,8 @@ packages: peerDependencies: ethers: ~5.7.0 - zod@3.24.2: - resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} + zod@3.25.76: + resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} snapshots: @@ -5894,7 +5894,7 @@ snapshots: ethereumjs-util: 7.1.5 hardhat: 2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3) - '@nomicfoundation/hardhat-toolbox@4.0.0(ampjhdpvrmhekrb6rotz73h5ma)': + '@nomicfoundation/hardhat-toolbox@4.0.0(oi4zkjkinfcwdsolqlvmpdyvpq)': dependencies: '@nomicfoundation/hardhat-chai-matchers': 2.0.8(@nomicfoundation/hardhat-ethers@3.0.8(ethers@6.13.4)(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)))(chai@4.5.0)(ethers@6.13.4)(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)) '@nomicfoundation/hardhat-ethers': 3.0.8(ethers@6.13.4)(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)) @@ -5908,7 +5908,7 @@ snapshots: chai: 4.5.0 ethers: 6.13.4 hardhat: 2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3) - hardhat-gas-reporter: 2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.24.2) + hardhat-gas-reporter: 2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.25.76) solidity-coverage: 0.8.16(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3)) ts-node: 10.9.2(@types/node@20.19.0)(typescript@5.8.3) typechain: 8.3.2(typescript@5.8.3) @@ -6436,10 +6436,10 @@ snapshots: abbrev@1.0.9: {} - abitype@1.0.8(typescript@5.8.3)(zod@3.24.2): + abitype@1.0.8(typescript@5.8.3)(zod@3.25.76): optionalDependencies: typescript: 5.8.3 - zod: 3.24.2 + zod: 3.25.76 acorn-jsx@5.3.2(acorn@8.12.1): dependencies: @@ -8410,7 +8410,7 @@ snapshots: - supports-color - utf-8-validate - hardhat-gas-reporter@2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.24.2): + hardhat-gas-reporter@2.3.0(hardhat@2.24.2(ts-node@10.9.2(@types/node@20.19.0)(typescript@5.8.3))(typescript@5.8.3))(typescript@5.8.3)(zod@3.25.76): dependencies: '@ethersproject/abi': 5.7.0 '@ethersproject/bytes': 5.7.0 @@ -8427,7 +8427,7 @@ snapshots: lodash: 4.17.21 markdown-table: 2.0.0 sha1: 1.1.1 - viem: 2.29.1(typescript@5.8.3)(zod@3.24.2) + viem: 2.29.1(typescript@5.8.3)(zod@3.25.76) transitivePeerDependencies: - bufferutil - debug @@ -9667,28 +9667,28 @@ snapshots: object-keys: 1.1.1 safe-push-apply: 1.0.0 - ox@0.6.7(typescript@5.8.3)(zod@3.24.2): + ox@0.6.7(typescript@5.8.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.0 '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@scure/bip32': 1.6.2 '@scure/bip39': 1.5.4 - abitype: 1.0.8(typescript@5.8.3)(zod@3.24.2) + abitype: 1.0.8(typescript@5.8.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.8.3 transitivePeerDependencies: - zod - ox@0.6.9(typescript@5.8.3)(zod@3.24.2): + ox@0.6.9(typescript@5.8.3)(zod@3.25.76): dependencies: '@adraffy/ens-normalize': 1.11.0 '@noble/curves': 1.8.2 '@noble/hashes': 1.7.2 '@scure/bip32': 1.6.2 '@scure/bip39': 1.5.4 - abitype: 1.0.8(typescript@5.8.3)(zod@3.24.2) + abitype: 1.0.8(typescript@5.8.3)(zod@3.25.76) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.8.3 @@ -10761,15 +10761,15 @@ snapshots: spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 - viem@2.23.2(typescript@5.8.3)(zod@3.24.2): + viem@2.23.2(typescript@5.8.3)(zod@3.25.76): dependencies: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 '@scure/bip32': 1.6.2 '@scure/bip39': 1.5.4 - abitype: 1.0.8(typescript@5.8.3)(zod@3.24.2) + abitype: 1.0.8(typescript@5.8.3)(zod@3.25.76) isows: 1.0.6(ws@8.18.0) - ox: 0.6.7(typescript@5.8.3)(zod@3.24.2) + ox: 0.6.7(typescript@5.8.3)(zod@3.25.76) ws: 8.18.0 optionalDependencies: typescript: 5.8.3 @@ -10778,15 +10778,15 @@ snapshots: - utf-8-validate - zod - viem@2.29.1(typescript@5.8.3)(zod@3.24.2): + viem@2.29.1(typescript@5.8.3)(zod@3.25.76): dependencies: '@noble/curves': 1.8.2 '@noble/hashes': 1.7.2 '@scure/bip32': 1.6.2 '@scure/bip39': 1.5.4 - abitype: 1.0.8(typescript@5.8.3)(zod@3.24.2) + abitype: 1.0.8(typescript@5.8.3)(zod@3.25.76) isows: 1.0.6(ws@8.18.1) - ox: 0.6.9(typescript@5.8.3)(zod@3.24.2) + ox: 0.6.9(typescript@5.8.3)(zod@3.25.76) ws: 8.18.1 optionalDependencies: typescript: 5.8.3 @@ -10983,4 +10983,4 @@ snapshots: dependencies: ethers: 5.7.2 - zod@3.24.2: {} + zod@3.25.76: {} diff --git a/scripts/check-deployment-config.ts b/scripts/check-deployment-config.ts index 38bb7398..5ca55b38 100644 --- a/scripts/check-deployment-config.ts +++ b/scripts/check-deployment-config.ts @@ -1,35 +1,18 @@ -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../data/chain-support.json'; import { CHAINS } from '../src/generated/chains'; function main() { const chainAliases = new Set(CHAINS.map((chain) => chain.alias)); - [chainsSupportedByManagerMultisig, chainsSupportedByDapis, chainsSupportedByMarket, chainsSupportedByOevAuctions].map( - (supportedChainAliases) => { - supportedChainAliases.map((supportedChainAlias) => { - if (!chainAliases.has(supportedChainAlias)) { - throw new Error(`Supported chain with alias ${supportedChainAlias} does not exist`); - } - }); - } - ); - chainsSupportedByDapis.map((chainSupportedByDapis) => { - if (!chainsSupportedByManagerMultisig.includes(chainSupportedByDapis)) { - throw new Error(`dAPI-supported chain with alias ${chainSupportedByDapis} is not manager multisig-supported`); - } - }); - chainsSupportedByMarket.map((chainSupportedByMarket) => { - if (!chainsSupportedByDapis.includes(chainSupportedByMarket)) { - throw new Error(`Market-supported chain with alias ${chainSupportedByMarket} is not dAPI-supported`); - } + [chainsSupportedByMarket, chainsSupportedByOevAuctions].forEach((supportedChainAliases) => { + supportedChainAliases.forEach((supportedChainAlias) => { + if (!chainAliases.has(supportedChainAlias)) { + throw new Error(`Supported chain with alias ${supportedChainAlias} does not exist`); + } + }); }); - chainsSupportedByOevAuctions.map((chainSupportedByOevAuctions) => { - if (!chainsSupportedByDapis.includes(chainSupportedByOevAuctions)) { - throw new Error(`OEV auction-supported chain with alias ${chainSupportedByOevAuctions} is not dAPI-supported`); + chainsSupportedByOevAuctions.forEach((chainAlias) => { + if (!chainsSupportedByMarket.includes(chainAlias)) { + throw new Error(`OEV auction-supported chain with alias ${chainAlias} is not market-supported`); } }); } diff --git a/scripts/constants.ts b/scripts/constants.ts index af475cda..740fd274 100644 --- a/scripts/constants.ts +++ b/scripts/constants.ts @@ -11,14 +11,13 @@ export const goAsyncOptions: GoAsyncOptions = { }, }; -export const skippedChainAliasesInOevAuctionHouseNativeCurrencyRateValidation = []; +export const skippedChainAliasesInOevAuctionHouseNativeCurrencyRateValidation: string[] = []; export const skippedChainAliasesInOwnableCallForwarderConstructorArgumentVerification = [ 'apechain', 'apechain-arbitrum-sepolia-testnet', 'arbitrum', 'arbitrum-sepolia-testnet', - 'atleta-testnet', 'avalanche', 'avalanche-testnet', 'base', @@ -42,16 +41,10 @@ export const skippedChainAliasesInOwnableCallForwarderConstructorArgumentVerific 'fraxtal-holesky-testnet', 'gnosis', 'gnosis-testnet', - 'inevm', - 'inevm-testnet', 'ink', 'ink-sepolia-testnet', 'kava', 'kava-testnet', - 'kroma', - 'kroma-sepolia-testnet', - 'lightlink', - 'lightlink-sepolia-testnet', 'linea', 'linea-sepolia-testnet', 'lumia', @@ -82,8 +75,6 @@ export const skippedChainAliasesInOwnableCallForwarderConstructorArgumentVerific 'polygon-sepolia-testnet', 'polygon-zkevm', 'polygon-zkevm-sepolia-testnet', - 'rari', - 'rari-arbitrum-sepolia-testnet', 'ronin', 'ronin-testnet', 'scroll', @@ -103,5 +94,4 @@ export const skippedChainAliasesInOwnableCallForwarderConstructorArgumentVerific 'x-layer', 'x-layer-sepolia-testnet', 'zircuit', - 'zircuit-sepolia-testnet', ]; diff --git a/scripts/generate-dapps.ts b/scripts/generate-dapps.ts index 5afd2567..b1a19043 100644 --- a/scripts/generate-dapps.ts +++ b/scripts/generate-dapps.ts @@ -4,7 +4,7 @@ import path from 'node:path'; import { goSync } from '@api3/promise-utils'; import { format } from 'prettier'; -import { dappSchema } from '../src/types'; +import { type Dapp, dappSchema } from '../src/types'; const PRETTIER_CONFIG = path.join(__dirname, '..', '.prettierrc'); const INPUT_DIR = path.join(__dirname, '..', 'data', 'dapps'); @@ -21,6 +21,38 @@ const HEADER_CONTENT = `// ===================================================== import { type Dapp } from '../types'; `; +function ensureMorphoDappConventions(fileContent: Dapp) { + const { aliases } = fileContent; + + for (const [alias, dapp] of Object.entries(aliases)) { + // Verify basic alias and title format. + const aSplit = alias.split('-'); // e.g. morpho-mvl-usdc-770-lltv + const tSplit = dapp.title.split(/[ /]/); // e.g. Morpho MVL/USDC 77% LLTV + if (aSplit.length !== 5) throw new Error(`Morpho alias ${alias} has an invalid format.`); + if (tSplit.length !== 5) throw new Error(`Morpho title ${dapp.title} has an invalid format.`); + const [aMorphoStr, aCollateralToken, aBorrowToken, aLltv, aLltvStr] = aSplit; + const [tMorphoStr, tCollateralToken, tBorrowToken, tLltv, tLltvStr] = tSplit; + + // Verify the title/alias convention. + if ( + aMorphoStr !== 'morpho' || + tMorphoStr !== 'Morpho' || + aCollateralToken !== tCollateralToken!.toLowerCase() || // The token names are sometimes mixed case, e.g. wstETH + aBorrowToken !== tBorrowToken!.toLowerCase() || // The token names are sometimes mixed case, e.g. wstETH + `${Number(aLltv) / 10}%` !== tLltv || + aLltvStr!.toUpperCase() !== tLltvStr + ) { + throw new Error(`Morpho title/alias discrepancy for alias: ${alias}`); + } + + // Verify the title/description convention. + const expectedDescription = `Only to be used for the ${tCollateralToken}/${tBorrowToken} ${tLltv} LLTV market.`; + if (dapp.description !== expectedDescription) { + throw new Error(`Morpho title/description discrepancy for alias: ${alias}`); + } + } +} + async function main(): Promise { const fileNames = fs.readdirSync(INPUT_DIR); const jsonFiles = fileNames.filter((fileName) => fileName.endsWith('.json')); @@ -33,6 +65,18 @@ async function main(): Promise { throw new Error(`Invalid dApps file content: ${filePath}\n${goFileContent.error}`); } const fileContent = goFileContent.data; + + // Apply custom validation for non-schema enforced conventions. + switch (jsonFile) { + case 'morpho.json': { + ensureMorphoDappConventions(fileContent); + break; + } + default: { + break; + } + } + combinedDapps.push(fileContent); } diff --git a/scripts/src/deployment-addresses.ts b/scripts/src/deployment-addresses.ts index 03d9f8f8..331bd35d 100644 --- a/scripts/src/deployment-addresses.ts +++ b/scripts/src/deployment-addresses.ts @@ -3,12 +3,7 @@ import { join } from 'node:path'; import type { AddressLike } from 'ethers'; -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../../data/chain-support.json'; import { CHAINS } from '../../src/generated/chains'; function getDeploymentAddresses() { @@ -23,21 +18,23 @@ function getDeploymentAddresses() { OevAuctionHouse: {}, }; - const networks = new Set([ - ...chainsSupportedByManagerMultisig, - ...chainsSupportedByDapis, - ...chainsSupportedByMarket, - ...chainsSupportedByOevAuctions, - ]); + const networks = new Set([...chainsSupportedByMarket, ...chainsSupportedByOevAuctions]); for (const network of networks) { const chainId = CHAINS.find((chain) => chain.alias === network)?.id; const contractNames = [ - ...(chainsSupportedByManagerMultisig.includes(network) ? ['GnosisSafeWithoutProxy', 'OwnableCallForwarder'] : []), - ...(chainsSupportedByDapis.includes(network) - ? ['AccessControlRegistry', 'Api3ServerV1', 'Api3ServerV1OevExtension', 'Api3ReaderProxyV1Factory'] + ...(chainsSupportedByMarket.includes(network) + ? [ + 'GnosisSafeWithoutProxy', + 'OwnableCallForwarder', + 'AccessControlRegistry', + 'Api3ServerV1', + 'Api3ServerV1OevExtension', + 'Api3ReaderProxyV1Factory', + 'AirseekerRegistry', + 'Api3MarketV2', + ] : []), - ...(chainsSupportedByMarket.includes(network) ? ['AirseekerRegistry', 'Api3MarketV2'] : []), ...(chainsSupportedByOevAuctions.includes(network) ? ['OevAuctionHouse'] : []), ]; for (const contractName of contractNames) { diff --git a/scripts/survey-roles.ts b/scripts/survey-roles.ts index 354100b7..9ff74027 100644 --- a/scripts/survey-roles.ts +++ b/scripts/survey-roles.ts @@ -8,7 +8,7 @@ import { join } from 'node:path'; import { go } from '@api3/promise-utils'; import { config, ethers } from 'hardhat'; -import { chainsSupportedByManagerMultisig, chainsSupportedByDapis } from '../data/chain-support.json'; +import { chainsSupportedByMarket } from '../data/chain-support.json'; import { CHAINS } from '../src/index'; import { goAsyncOptions } from './constants'; @@ -16,8 +16,8 @@ import { goAsyncOptions } from './constants'; const MAXIMUM_GETLOGS_BLOCK_RANGE = 50_000; async function surveyRoles(network: string) { - if (!chainsSupportedByDapis.includes(network)) { - return; + if (!chainsSupportedByMarket.includes(network)) { + throw new Error(`${network} is not supported`); } const provider = new ethers.JsonRpcProvider((config.networks[network] as any).url); const { address: accessControlRegistryAddress, abi: accessControlRegistryAbi } = JSON.parse( @@ -82,7 +82,7 @@ async function surveyRoles(network: string) { } async function main() { - const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByManagerMultisig; + const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByMarket; const erroredMainnets: string[] = []; const erroredTestnets: string[] = []; diff --git a/scripts/validate-deployments.ts b/scripts/validate-deployments.ts index 1264875c..3fd54d75 100644 --- a/scripts/validate-deployments.ts +++ b/scripts/validate-deployments.ts @@ -5,12 +5,7 @@ import { go } from '@api3/promise-utils'; import { config, ethers } from 'hardhat'; import * as auctioneerMetadata from '../data/auctioneer-metadata.json'; -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../data/chain-support.json'; import { dapiManagementMerkleRootSigners, dapiPricingMerkleRootSigners, @@ -21,6 +16,7 @@ import type { AccessControlRegistry, Api3MarketV2, Api3ReaderProxyV1Factory, + Chain, GnosisSafeWithoutProxy, IApi3ReaderProxy, OevAuctionHouse, @@ -37,8 +33,8 @@ const dappId = 1; const api3ReaderProxyV1Metadata = '0x'; async function validateDeployments(network: string) { - if (!chainsSupportedByManagerMultisig.includes(network)) { - return; + if (!chainsSupportedByMarket.includes(network)) { + throw new Error(`${network} is not supported`); } const provider = new ethers.JsonRpcProvider((config.networks[network] as any).url); @@ -103,363 +99,341 @@ async function validateDeployments(network: string) { `${network} OwnableCallForwarder owner ${ethers.getAddress(goFetchOwnableCallForwarderOwner.data)} is not the same as the manager multisig address ${ethers.getAddress(gnosisSafeWithoutProxyAddress)}` ); } - if (chainsSupportedByDapis.includes(network)) { - // Validate that the Api3ReaderProxyV1Factory owner is OwnableCallForwarder - const { address: api3ReaderProxyV1FactoryAddress, abi: api3ReaderProxyV1FactoryAbi } = JSON.parse( - fs.readFileSync(join('deployments', network, `Api3ReaderProxyV1Factory.json`), 'utf8') + // Validate that the Api3ReaderProxyV1Factory owner is OwnableCallForwarder + const { address: api3ReaderProxyV1FactoryAddress, abi: api3ReaderProxyV1FactoryAbi } = JSON.parse( + fs.readFileSync(join('deployments', network, `Api3ReaderProxyV1Factory.json`), 'utf8') + ); + const api3ReaderProxyV1Factory = new ethers.Contract( + api3ReaderProxyV1FactoryAddress, + api3ReaderProxyV1FactoryAbi, + provider + ) as unknown as Api3ReaderProxyV1Factory; + const goFetchApi3ReaderProxyV1FactoryOwner = await go(async () => api3ReaderProxyV1Factory.owner(), goAsyncOptions); + if (!goFetchApi3ReaderProxyV1FactoryOwner.success || !goFetchApi3ReaderProxyV1FactoryOwner.data) { + throw new Error(`${network} Api3ReaderProxyV1Factory owner could not be fetched`); + } + if (ethers.getAddress(goFetchApi3ReaderProxyV1FactoryOwner.data) !== ethers.getAddress(ownableCallForwarderAddress)) { + throw new Error( + `${network} Api3ReaderProxyV1Factory owner ${ethers.getAddress(goFetchApi3ReaderProxyV1FactoryOwner.data)} is not the same as the OwnableCallForwarder address ${ethers.getAddress(ownableCallForwarderAddress)}` ); - const api3ReaderProxyV1Factory = new ethers.Contract( - api3ReaderProxyV1FactoryAddress, - api3ReaderProxyV1FactoryAbi, - provider - ) as unknown as Api3ReaderProxyV1Factory; - const goFetchApi3ReaderProxyV1FactoryOwner = await go(async () => api3ReaderProxyV1Factory.owner(), goAsyncOptions); - if (!goFetchApi3ReaderProxyV1FactoryOwner.success || !goFetchApi3ReaderProxyV1FactoryOwner.data) { - throw new Error(`${network} Api3ReaderProxyV1Factory owner could not be fetched`); - } - if ( - ethers.getAddress(goFetchApi3ReaderProxyV1FactoryOwner.data) !== ethers.getAddress(ownableCallForwarderAddress) - ) { - throw new Error( - `${network} Api3ReaderProxyV1Factory owner ${ethers.getAddress(goFetchApi3ReaderProxyV1FactoryOwner.data)} is not the same as the OwnableCallForwarder address ${ethers.getAddress(ownableCallForwarderAddress)}` - ); - } + } - if (chainsSupportedByMarket.includes(network)) { - // Validate that the Api3MarketV2 AirseekerRegistry address belongs to AirseekerRegistry - const { address: api3MarketV2Address, abi: api3MarketV2Abi } = JSON.parse( - fs.readFileSync(join('deployments', network, `Api3MarketV2.json`), 'utf8') - ); - const api3MarketV2 = new ethers.Contract( - api3MarketV2Address, - api3MarketV2Abi, - provider - ) as unknown as Api3MarketV2; - const goFetchApi3MarketV2AirseekerRegistry = await go( - async () => api3MarketV2.airseekerRegistry(), - goAsyncOptions - ); - if (!goFetchApi3MarketV2AirseekerRegistry.success || !goFetchApi3MarketV2AirseekerRegistry.data) { - throw new Error(`${network} Api3MarketV2 AirseekerRegistry address could not be fetched`); - } - const { address: airseekerRegistryAddress } = JSON.parse( - fs.readFileSync(join('deployments', network, `AirseekerRegistry.json`), 'utf8') - ); - if ( - ethers.getAddress(goFetchApi3MarketV2AirseekerRegistry.data) !== ethers.getAddress(airseekerRegistryAddress) - ) { - throw new Error( - `${network} Api3MarketV2 AirseekerRegistry address ${ethers.getAddress(goFetchApi3MarketV2AirseekerRegistry.data)} is not the same as the AirseekerRegistry address ${airseekerRegistryAddress}` - ); - } + // Validate that the Api3MarketV2 AirseekerRegistry address belongs to AirseekerRegistry + const { address: api3MarketV2Address, abi: api3MarketV2Abi } = JSON.parse( + fs.readFileSync(join('deployments', network, `Api3MarketV2.json`), 'utf8') + ); + const api3MarketV2 = new ethers.Contract(api3MarketV2Address, api3MarketV2Abi, provider) as unknown as Api3MarketV2; + const goFetchApi3MarketV2AirseekerRegistry = await go(async () => api3MarketV2.airseekerRegistry(), goAsyncOptions); + if (!goFetchApi3MarketV2AirseekerRegistry.success || !goFetchApi3MarketV2AirseekerRegistry.data) { + throw new Error(`${network} Api3MarketV2 AirseekerRegistry address could not be fetched`); + } + const { address: airseekerRegistryAddress } = JSON.parse( + fs.readFileSync(join('deployments', network, `AirseekerRegistry.json`), 'utf8') + ); + if (ethers.getAddress(goFetchApi3MarketV2AirseekerRegistry.data) !== ethers.getAddress(airseekerRegistryAddress)) { + throw new Error( + `${network} Api3MarketV2 AirseekerRegistry address ${ethers.getAddress(goFetchApi3MarketV2AirseekerRegistry.data)} is not the same as the AirseekerRegistry address ${airseekerRegistryAddress}` + ); + } - // Validate that Api3MarketV2 dAPI management, dAPI pricing and Signed API URL MT hash signers are set - const goFetchApi3MarketV2DapiManagementMerkleRootSignersHash = await go( - async () => - api3MarketV2.hashTypeToSignersHash( - ethers.solidityPackedKeccak256(['string'], ['dAPI management Merkle root']) - ), - goAsyncOptions - ); - if ( - !goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.success || - !goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data - ) { - throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers hash could not be fetched`); - } - if (goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data === ethers.ZeroHash) { - throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers are not set`); - } - if ( - goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data !== - ethers.solidityPackedKeccak256(['address[]'], [dapiManagementMerkleRootSigners]) - ) { - throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers are set incorrectly`); - } - const goFetchApi3MarketV2DapiPricingMerkleRootSignersHash = await go( - async () => - api3MarketV2.hashTypeToSignersHash(ethers.solidityPackedKeccak256(['string'], ['dAPI pricing Merkle root'])), - goAsyncOptions - ); - if ( - !goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.success || - !goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data - ) { - throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers hash could not be fetched`); - } - if (goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data === ethers.ZeroHash) { - throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers are not set`); - } - if ( - goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data !== - ethers.solidityPackedKeccak256(['address[]'], [dapiPricingMerkleRootSigners]) - ) { - throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers are set incorrectly`); - } - const goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash = await go( - async () => - api3MarketV2.hashTypeToSignersHash( - ethers.solidityPackedKeccak256(['string'], ['Signed API URL Merkle root']) - ), - goAsyncOptions - ); - if ( - !goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.success || - !goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data - ) { - throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers hash could not be fetched`); - } - if (goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data === ethers.ZeroHash) { - throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers are not set`); - } - if ( - goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data !== - ethers.solidityPackedKeccak256(['address[]'], [signedApiUrlMerkleRootSigners]) - ) { - throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers are set incorrectly`); - } + // Validate that Api3MarketV2 dAPI management, dAPI pricing and Signed API URL MT hash signers are set + const goFetchApi3MarketV2DapiManagementMerkleRootSignersHash = await go( + async () => + api3MarketV2.hashTypeToSignersHash(ethers.solidityPackedKeccak256(['string'], ['dAPI management Merkle root'])), + goAsyncOptions + ); + if ( + !goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.success || + !goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data + ) { + throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers hash could not be fetched`); + } + if (goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data === ethers.ZeroHash) { + throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers are not set`); + } + if ( + goFetchApi3MarketV2DapiManagementMerkleRootSignersHash.data !== + ethers.solidityPackedKeccak256(['address[]'], [dapiManagementMerkleRootSigners]) + ) { + throw new Error(`${network} Api3MarketV2 dAPI management Merkle root signers are set incorrectly`); + } + const goFetchApi3MarketV2DapiPricingMerkleRootSignersHash = await go( + async () => + api3MarketV2.hashTypeToSignersHash(ethers.solidityPackedKeccak256(['string'], ['dAPI pricing Merkle root'])), + goAsyncOptions + ); + if ( + !goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.success || + !goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data + ) { + throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers hash could not be fetched`); + } + if (goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data === ethers.ZeroHash) { + throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers are not set`); + } + if ( + goFetchApi3MarketV2DapiPricingMerkleRootSignersHash.data !== + ethers.solidityPackedKeccak256(['address[]'], [dapiPricingMerkleRootSigners]) + ) { + throw new Error(`${network} Api3MarketV2 dAPI pricing Merkle root signers are set incorrectly`); + } + const goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash = await go( + async () => + api3MarketV2.hashTypeToSignersHash(ethers.solidityPackedKeccak256(['string'], ['Signed API URL Merkle root'])), + goAsyncOptions + ); + if ( + !goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.success || + !goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data + ) { + throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers hash could not be fetched`); + } + if (goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data === ethers.ZeroHash) { + throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers are not set`); + } + if ( + goFetchApi3MarketV2SignedApiUrlMerkleRootSignersHash.data !== + ethers.solidityPackedKeccak256(['address[]'], [signedApiUrlMerkleRootSigners]) + ) { + throw new Error(`${network} Api3MarketV2 Signed API URL Merkle root signers are set incorrectly`); + } - // Validate that Api3MarketV2 is a dAPI name setter - const rootRole = ethers.solidityPackedKeccak256(['address'], [ownableCallForwarderAddress]); - const api3ServerV1AdminRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1 admin'])] - ); - const dapiNameSetterRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [api3ServerV1AdminRole, ethers.solidityPackedKeccak256(['string'], ['dAPI name setter'])] - ); - const { address: accessControlRegistryAddress, abi: accessControlRegistryAbi } = JSON.parse( - fs.readFileSync(join('deployments', network, `AccessControlRegistry.json`), 'utf8') - ); - const accessControlRegistry = new ethers.Contract( - accessControlRegistryAddress, - accessControlRegistryAbi, - provider - ) as unknown as AccessControlRegistry; - const goFetchApi3MarketV2DapiNameSetterRoleStatus = await go( - async () => accessControlRegistry.hasRole(dapiNameSetterRole, api3MarketV2Address), - goAsyncOptions - ); - if (!goFetchApi3MarketV2DapiNameSetterRoleStatus.success) { - throw new Error(`${network} Api3MarketV2 dAPI name setter role status could not be fetched`); - } - if (!goFetchApi3MarketV2DapiNameSetterRoleStatus.data) { - throw new Error(`${network} Api3MarketV2 does not have the dAPI name setter role`); - } + // Validate that Api3MarketV2 is a dAPI name setter + const rootRole = ethers.solidityPackedKeccak256(['address'], [ownableCallForwarderAddress]); + const api3ServerV1AdminRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1 admin'])] + ); + const dapiNameSetterRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [api3ServerV1AdminRole, ethers.solidityPackedKeccak256(['string'], ['dAPI name setter'])] + ); + const { address: accessControlRegistryAddress, abi: accessControlRegistryAbi } = JSON.parse( + fs.readFileSync(join('deployments', network, `AccessControlRegistry.json`), 'utf8') + ); + const accessControlRegistry = new ethers.Contract( + accessControlRegistryAddress, + accessControlRegistryAbi, + provider + ) as unknown as AccessControlRegistry; + const goFetchApi3MarketV2DapiNameSetterRoleStatus = await go( + async () => accessControlRegistry.hasRole(dapiNameSetterRole, api3MarketV2Address), + goAsyncOptions + ); + if (!goFetchApi3MarketV2DapiNameSetterRoleStatus.success) { + throw new Error(`${network} Api3MarketV2 dAPI name setter role status could not be fetched`); + } + if (!goFetchApi3MarketV2DapiNameSetterRoleStatus.data) { + throw new Error(`${network} Api3MarketV2 does not have the dAPI name setter role`); + } - // Validate that auction resolvers have the auctioneer role - const api3ServerV1OevExtensionAdminRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1OevExtension admin'])] - ); - const auctioneerRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [api3ServerV1OevExtensionAdminRole, ethers.solidityPackedKeccak256(['string'], ['Auctioneer'])] - ); + // Validate that auction resolvers have the auctioneer role + const api3ServerV1OevExtensionAdminRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1OevExtension admin'])] + ); + const auctioneerRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [api3ServerV1OevExtensionAdminRole, ethers.solidityPackedKeccak256(['string'], ['Auctioneer'])] + ); - const goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus = await go( - async () => - accessControlRegistry.multicall.staticCall( - auctioneerMetadata['auction-resolvers'].map((auctioneerResolverAddress) => - accessControlRegistry.interface.encodeFunctionData('hasRole', [auctioneerRole, auctioneerResolverAddress]) - ) - ), - goAsyncOptions - ); - if (!goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.success) { - throw new Error(`${network} Api3ServerV1OevExtension auctioneer role status could not be fetched`); - } - if ( - !goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.every( - (auctioneerRoleStatus) => auctioneerRoleStatus !== ethers.ZeroHash + const goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus = await go( + async () => + accessControlRegistry.multicall.staticCall( + auctioneerMetadata['auction-resolvers'].map((auctioneerResolverAddress) => + accessControlRegistry.interface.encodeFunctionData('hasRole', [auctioneerRole, auctioneerResolverAddress]) ) - ) { - throw new Error( - `${network} (${auctioneerMetadata['auction-resolvers']}) Api3ServerV1OevExtension auctioneer role statuses are (${goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.map((auctioneerRoleStatus) => (auctioneerRoleStatus === ethers.ZeroHash ? false : true))})` - ); - } - } + ), + goAsyncOptions + ); + if (!goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.success) { + throw new Error(`${network} Api3ServerV1OevExtension auctioneer role status could not be fetched`); + } + if ( + !goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.every( + (auctioneerRoleStatus) => auctioneerRoleStatus !== ethers.ZeroHash + ) + ) { + throw new Error( + `${network} (${auctioneerMetadata['auction-resolvers']}) Api3ServerV1OevExtension auctioneer role statuses are (${goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.map((auctioneerRoleStatus) => (auctioneerRoleStatus === ethers.ZeroHash ? false : true))})` + ); + } - if (chainsSupportedByOevAuctions.includes(network)) { - // Validate that auction resolvers and auction cops have the auctioneer role - const { address: accessControlRegistryAddress, abi: accessControlRegistryAbi } = JSON.parse( - fs.readFileSync(join('deployments', network, `AccessControlRegistry.json`), 'utf8') - ); - const accessControlRegistry = new ethers.Contract( - accessControlRegistryAddress, - accessControlRegistryAbi, - provider - ) as unknown as AccessControlRegistry; - const rootRole = ethers.solidityPackedKeccak256(['address'], [ownableCallForwarderAddress]); - const api3ServerV1OevExtensionAdminRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1OevExtension admin'])] - ); - const auctioneerRole = ethers.solidityPackedKeccak256( - ['bytes32', 'bytes32'], - [api3ServerV1OevExtensionAdminRole, ethers.solidityPackedKeccak256(['string'], ['Auctioneer'])] - ); + if (chainsSupportedByOevAuctions.includes(network)) { + // Validate that auction resolvers and auction cops have the auctioneer role + const { address: accessControlRegistryAddress, abi: accessControlRegistryAbi } = JSON.parse( + fs.readFileSync(join('deployments', network, `AccessControlRegistry.json`), 'utf8') + ); + const accessControlRegistry = new ethers.Contract( + accessControlRegistryAddress, + accessControlRegistryAbi, + provider + ) as unknown as AccessControlRegistry; + const rootRole = ethers.solidityPackedKeccak256(['address'], [ownableCallForwarderAddress]); + const api3ServerV1OevExtensionAdminRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [rootRole, ethers.solidityPackedKeccak256(['string'], ['Api3ServerV1OevExtension admin'])] + ); + const auctioneerRole = ethers.solidityPackedKeccak256( + ['bytes32', 'bytes32'], + [api3ServerV1OevExtensionAdminRole, ethers.solidityPackedKeccak256(['string'], ['Auctioneer'])] + ); - const goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus = await go( - async () => - accessControlRegistry.multicall.staticCall( - [...auctioneerMetadata['auction-resolvers'], ...auctioneerMetadata['auction-cops']].map( - (auctioneerResolverAddress) => - accessControlRegistry.interface.encodeFunctionData('hasRole', [ - auctioneerRole, - auctioneerResolverAddress, - ]) - ) - ), - goAsyncOptions + const goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus = await go( + async () => + accessControlRegistry.multicall.staticCall( + [...auctioneerMetadata['auction-resolvers'], ...auctioneerMetadata['auction-cops']].map( + (auctioneerResolverAddress) => + accessControlRegistry.interface.encodeFunctionData('hasRole', [auctioneerRole, auctioneerResolverAddress]) + ) + ), + goAsyncOptions + ); + if (!goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.success) { + throw new Error(`${network} Api3ServerV1OevExtension auctioneer role status could not be fetched`); + } + if ( + !goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.every( + (auctioneerRoleStatus) => auctioneerRoleStatus !== ethers.ZeroHash + ) + ) { + throw new Error( + `${network} (${[...auctioneerMetadata['auction-resolvers'], ...auctioneerMetadata['auction-cops']]}) Api3ServerV1OevExtension auctioneer role statuses are (${goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.map((auctioneerRoleStatus) => (auctioneerRoleStatus === ethers.ZeroHash ? false : true))})` ); - if (!goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.success) { - throw new Error(`${network} Api3ServerV1OevExtension auctioneer role status could not be fetched`); - } - if ( - !goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.every( - (auctioneerRoleStatus) => auctioneerRoleStatus !== ethers.ZeroHash - ) - ) { - throw new Error( - `${network} (${[...auctioneerMetadata['auction-resolvers'], ...auctioneerMetadata['auction-cops']]}) Api3ServerV1OevExtension auctioneer role statuses are (${goFetchApi3ServerV1OevExtensionAuctioneerRoleStatus.data.map((auctioneerRoleStatus) => (auctioneerRoleStatus === ethers.ZeroHash ? false : true))})` - ); - } + } - // Validate that collateral rate proxy is set - const { address: oevAuctionHouseAddress, abi: oevAuctionHouseAbi } = JSON.parse( - fs.readFileSync(join('deployments', network, `OevAuctionHouse.json`), 'utf8') - ); - const oevAuctionHouse = new ethers.Contract( - oevAuctionHouseAddress, - oevAuctionHouseAbi, - provider - ) as unknown as OevAuctionHouse; + // Validate that collateral rate proxy is set + const { address: oevAuctionHouseAddress, abi: oevAuctionHouseAbi } = JSON.parse( + fs.readFileSync(join('deployments', network, `OevAuctionHouse.json`), 'utf8') + ); + const oevAuctionHouse = new ethers.Contract( + oevAuctionHouseAddress, + oevAuctionHouseAbi, + provider + ) as unknown as OevAuctionHouse; - const goFetchCollateralRateProxyAddress = await go( - async () => oevAuctionHouse.collateralRateProxy(), - goAsyncOptions + const goFetchCollateralRateProxyAddress = await go( + async () => oevAuctionHouse.collateralRateProxy(), + goAsyncOptions + ); + if (!goFetchCollateralRateProxyAddress.success) { + throw new Error('OevAuctionHouse collateral rate proxy address could not be fetched'); + } + const oevAuctionChainId = CHAINS.find((chain) => chain.alias === network)!.id; + const ethUsdRateReaderProxyV1Address = computeApi3ReaderProxyV1Address( + oevAuctionChainId, + 'ETH/USD', + dappId, + api3ReaderProxyV1Metadata + ); + if (goFetchCollateralRateProxyAddress.data !== ethUsdRateReaderProxyV1Address) { + throw new Error( + `OevAuctionHouse collateral rate proxy address is ${goFetchCollateralRateProxyAddress.data} while it should have been ${ethUsdRateReaderProxyV1Address}` ); - if (!goFetchCollateralRateProxyAddress.success) { - throw new Error('OevAuctionHouse collateral rate proxy address could not be fetched'); + } + + // Validate that native currency rate proxies are set + const chainsWithNativeRateProxies = chainsSupportedByMarket.reduce((acc, chainAlias) => { + const chain = CHAINS.find((chain) => chain.alias === chainAlias)!; + if (!chain.testnet) { + acc.push(chain); } - const oevAuctionChainId = CHAINS.find((chain) => chain.alias === network)!.id; - const ethUsdRateReaderProxyV1Address = computeApi3ReaderProxyV1Address( + return acc; + }, [] as Chain[]); + const goFetchNativeCurrencyRateProxyAddresses = await go( + async () => + oevAuctionHouse.multicall.staticCall( + chainsWithNativeRateProxies.map((chain) => + oevAuctionHouse.interface.encodeFunctionData('chainIdToNativeCurrencyRateProxy', [chain.id]) + ) + ), + goAsyncOptions + ); + if (!goFetchNativeCurrencyRateProxyAddresses.success) { + throw new Error('OevAuctionHouse native currency rate proxy addresses could not be fetched'); + } + const nativeCurrencyRateProxyAddresses = goFetchNativeCurrencyRateProxyAddresses.data.map((returndata) => + ethers.AbiCoder.defaultAbiCoder().decode(['address'], returndata) + ); + const errorMessages = chainsWithNativeRateProxies.reduce((acc, chain, ind) => { + const dapiName = `${chainSymbolToTicker[chain.symbol] ?? chain.symbol}/USD`; + const api3ReaderProxyV1Address = computeApi3ReaderProxyV1Address( oevAuctionChainId, - 'ETH/USD', + dapiName, dappId, api3ReaderProxyV1Metadata ); - if (goFetchCollateralRateProxyAddress.data !== ethUsdRateReaderProxyV1Address) { - throw new Error( - `OevAuctionHouse collateral rate proxy address is ${goFetchCollateralRateProxyAddress.data} while it should have been ${ethUsdRateReaderProxyV1Address}` - ); - } - - // Validate that native currency rate proxies are set - const chainsWithNativeRateProxies = chainsSupportedByMarket.reduce((acc, chainAlias) => { - const chain = CHAINS.find((chain) => chain.alias === chainAlias)!; - if (!chain.testnet) { - acc.push(chain); - } - return acc; - }, [] as any[]); - const goFetchNativeCurrencyRateProxyAddresses = await go( - async () => - oevAuctionHouse.multicall.staticCall( - chainsWithNativeRateProxies.map((chain) => - oevAuctionHouse.interface.encodeFunctionData('chainIdToNativeCurrencyRateProxy', [chain.id]) - ) - ), - goAsyncOptions - ); - if (!goFetchNativeCurrencyRateProxyAddresses.success) { - throw new Error('OevAuctionHouse native currency rate proxy addresses could not be fetched'); - } - const nativeCurrencyRateProxyAddresses = goFetchNativeCurrencyRateProxyAddresses.data.map((returndata) => - ethers.AbiCoder.defaultAbiCoder().decode(['address'], returndata) - ); - const errorMessages = chainsWithNativeRateProxies.reduce((acc, chain, ind) => { - const dapiName = `${chainSymbolToTicker[chain.symbol] ?? chain.symbol}/USD`; - const api3ReaderProxyV1Address = computeApi3ReaderProxyV1Address( - oevAuctionChainId, - dapiName, - dappId, - api3ReaderProxyV1Metadata + if (nativeCurrencyRateProxyAddresses[ind]!.toString() !== api3ReaderProxyV1Address) { + acc.push( + `${chain.alias} OevAuctionHouse native currency rate proxy address is ${nativeCurrencyRateProxyAddresses[ind]} while it should have been ${api3ReaderProxyV1Address}` ); - if (nativeCurrencyRateProxyAddresses[ind]!.toString() !== api3ReaderProxyV1Address) { - acc.push( - `${chain.alias} OevAuctionHouse native currency rate proxy address is ${nativeCurrencyRateProxyAddresses[ind]} while it should have been ${api3ReaderProxyV1Address}` - ); - } - return acc; - }, [] as string[]); - if (errorMessages.length > 0) { - // eslint-disable-next-line unicorn/error-message - throw new Error(errorMessages.join('\n')); } + return acc; + }, [] as string[]); + if (errorMessages.length > 0) { + // eslint-disable-next-line unicorn/error-message + throw new Error(errorMessages.join('\n')); + } - // Validate that used proxies all serve fresh values - const { abi: api3ReaderProxyAbi } = JSON.parse( - fs.readFileSync( - join('artifacts', 'contracts', 'interfaces', 'IApi3ReaderProxy.sol', 'IApi3ReaderProxy.json'), - 'utf8' - ) + // Validate that used proxies all serve fresh values + const { abi: api3ReaderProxyAbi } = JSON.parse( + fs.readFileSync( + join('artifacts', 'contracts', 'interfaces', 'IApi3ReaderProxy.sol', 'IApi3ReaderProxy.json'), + 'utf8' + ) + ); + const ethUsdRateReaderProxy = new ethers.Contract( + ethUsdRateReaderProxyV1Address, + api3ReaderProxyAbi, + provider + ) as unknown as IApi3ReaderProxy; + const goReadEthUsdRateProxy = await go(async () => ethUsdRateReaderProxy.read(), goAsyncOptions); + if (!goReadEthUsdRateProxy.success) { + throw new Error('OevAuctionHouse collateral rate proxy could not be read from'); + } + if (goReadEthUsdRateProxy.data.timestamp < Date.now() / 1000 - 24 * 60 * 60) { + throw new Error( + `OevAuctionHouse collateral rate timestamp is ${new Date(Number(goReadEthUsdRateProxy.data.timestamp) * 1000).toISOString()}` ); - const ethUsdRateReaderProxy = new ethers.Contract( - ethUsdRateReaderProxyV1Address, - api3ReaderProxyAbi, - provider - ) as unknown as IApi3ReaderProxy; - const goReadEthUsdRateProxy = await go(async () => ethUsdRateReaderProxy.read(), goAsyncOptions); - if (!goReadEthUsdRateProxy.success) { - throw new Error('OevAuctionHouse collateral rate proxy could not be read from'); - } - if (goReadEthUsdRateProxy.data.timestamp < Date.now() / 1000 - 24 * 60 * 60) { - throw new Error( - `OevAuctionHouse collateral rate timestamp is ${new Date(Number(goReadEthUsdRateProxy.data.timestamp) * 1000).toISOString()}` - ); - } + } - const proxyReadErrorMessages = await Promise.all( - chainsWithNativeRateProxies.map(async (chain, ind) => { - if (skippedChainAliasesInOevAuctionHouseNativeCurrencyRateValidation.includes(chain.alias)) { - return null; - } + const proxyReadErrorMessages = await Promise.all( + chainsWithNativeRateProxies.map(async (chain, ind) => { + if (skippedChainAliasesInOevAuctionHouseNativeCurrencyRateValidation.includes(chain.alias)) { + return null; + } - const nativeCurrencyRateReaderProxy = new ethers.Contract( - nativeCurrencyRateProxyAddresses[ind]!.toString(), - api3ReaderProxyAbi, - provider - ) as unknown as IApi3ReaderProxy; + const nativeCurrencyRateReaderProxy = new ethers.Contract( + nativeCurrencyRateProxyAddresses[ind]!.toString(), + api3ReaderProxyAbi, + provider + ) as unknown as IApi3ReaderProxy; - const goReadNativeCurrencyRateProxy = await go( - async () => nativeCurrencyRateReaderProxy.read(), - goAsyncOptions - ); + const goReadNativeCurrencyRateProxy = await go( + async () => nativeCurrencyRateReaderProxy.read(), + goAsyncOptions + ); - if (!goReadNativeCurrencyRateProxy.success) { - return `OevAuctionHouse native currency rate proxy of ${chain.alias} with address ${nativeCurrencyRateProxyAddresses[ind]!.toString()} could not be read from`; - } + if (!goReadNativeCurrencyRateProxy.success) { + return `OevAuctionHouse native currency rate proxy of ${chain.alias} with address ${nativeCurrencyRateProxyAddresses[ind]!.toString()} could not be read from`; + } - if (goReadNativeCurrencyRateProxy.data.timestamp < Date.now() / 1000 - 24 * 60 * 60) { - return `The timestamp read from OevAuctionHouse native currency rate proxy of ${chain.alias} with address ${nativeCurrencyRateProxyAddresses[ind]!.toString()} is too old (${new Date(Number(goReadNativeCurrencyRateProxy.data.timestamp) * 1000).toISOString()})`; - } + if (goReadNativeCurrencyRateProxy.data.timestamp < Date.now() / 1000 - 24 * 60 * 60) { + return `The timestamp read from OevAuctionHouse native currency rate proxy of ${chain.alias} with address ${nativeCurrencyRateProxyAddresses[ind]!.toString()} is too old (${new Date(Number(goReadNativeCurrencyRateProxy.data.timestamp) * 1000).toISOString()})`; + } - return null; - }) - ).then((messages) => messages.filter((message) => message !== null)); - if (proxyReadErrorMessages.length > 0) { - // eslint-disable-next-line unicorn/error-message - throw new Error(proxyReadErrorMessages.join('\n')); - } + return null; + }) + ).then((messages) => messages.filter((message) => message !== null)); + if (proxyReadErrorMessages.length > 0) { + // eslint-disable-next-line unicorn/error-message + throw new Error(proxyReadErrorMessages.join('\n')); } } } async function main() { - const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByManagerMultisig; + const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByMarket; const erroredMainnets: string[] = []; const erroredTestnets: string[] = []; diff --git a/scripts/verify-deployments.ts b/scripts/verify-deployments.ts index f401467d..a53d78cc 100644 --- a/scripts/verify-deployments.ts +++ b/scripts/verify-deployments.ts @@ -11,12 +11,7 @@ import { go } from '@api3/promise-utils'; import { config, deployments, ethers } from 'hardhat'; import type { Deployment } from 'hardhat-deploy/dist/types'; -import { - chainsSupportedByManagerMultisig, - chainsSupportedByDapis, - chainsSupportedByMarket, - chainsSupportedByOevAuctions, -} from '../data/chain-support.json'; +import { chainsSupportedByMarket, chainsSupportedByOevAuctions } from '../data/chain-support.json'; import { CHAINS } from '../src/index'; import { goAsyncOptions, skippedChainAliasesInOwnableCallForwarderConstructorArgumentVerification } from './constants'; @@ -128,13 +123,22 @@ function validateDeploymentArguments(network: string, deployment: Deployment, co } async function verifyDeployments(network: string) { + if (!chainsSupportedByMarket.includes(network)) { + throw new Error(`${network} is not supported`); + } const provider = new ethers.JsonRpcProvider((config.networks[network] as any).url); const contractNames = [ - ...(chainsSupportedByManagerMultisig.includes(network) ? ['GnosisSafeWithoutProxy', 'OwnableCallForwarder'] : []), - ...(chainsSupportedByDapis.includes(network) - ? ['AccessControlRegistry', 'Api3ServerV1', 'Api3ServerV1OevExtension', 'Api3ReaderProxyV1Factory'] + ...(chainsSupportedByMarket.includes(network) + ? [ + 'GnosisSafeWithoutProxy', + 'OwnableCallForwarder', + 'AccessControlRegistry', + 'Api3ServerV1', + 'Api3ServerV1OevExtension', + 'Api3ReaderProxyV1Factory', + 'Api3MarketV2', + ] : []), - ...(chainsSupportedByMarket.includes(network) ? ['Api3MarketV2'] : []), ...(chainsSupportedByOevAuctions.includes(network) ? ['OevAuctionHouse'] : []), ]; @@ -204,7 +208,7 @@ async function verifyDeployments(network: string) { } async function main() { - const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByManagerMultisig; + const networks = process.env.NETWORK ? [process.env.NETWORK] : chainsSupportedByMarket; const erroredMainnets: string[] = []; const erroredTestnets: string[] = []; diff --git a/src/cli.ts b/src/cli.ts index 27a484a1..b518befe 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -8,6 +8,7 @@ import { Api3ServerV1__factory, CHAINS, computeDappSpecificApi3ReaderProxyV1Address, + unsafeComputeDappId, DAPPS, deploymentAddresses, } from './index'; @@ -60,7 +61,7 @@ yargs(hideBin(process.argv)) const dappInfo = DAPPS.find((dapp) => Object.keys(dapp.aliases).includes(args['dapp-alias'])); if (!dappInfo) { const message = `⚠️ Could not find any record for alias "${args['dapp-alias']}"`; - if (args['strict']) { + if (args.strict) { console.error(message); process.exit(1); } @@ -85,7 +86,7 @@ yargs(hideBin(process.argv)) ); } catch (error) { const message = '⚠️ Attempted to read the feed and failed'; - if (args['strict']) { + if (args.strict) { console.error(message); console.error((error as Error).message); process.exit(1); @@ -94,7 +95,7 @@ yargs(hideBin(process.argv)) } if (timestamp && timestamp + BigInt(24 * 60 * 60) < Date.now() / 1000) { const message = `⚠️ Feed timestamp (${new Date(Number(timestamp) * 1000).toISOString()}) appears to be older than a day`; - if (args['strict']) { + if (args.strict) { console.error(message); process.exit(1); } @@ -110,7 +111,7 @@ yargs(hideBin(process.argv)) code = await provider.getCode(proxyAddress); } catch (error) { const message = '⚠️ Attempted to check if the proxy has been deployed and failed'; - if (args['strict']) { + if (args.strict) { console.error(message); console.error((error as Error).message); process.exit(1); @@ -119,7 +120,7 @@ yargs(hideBin(process.argv)) } if (code && code === '0x') { const message = '⚠️ Proxy does not appear to have been deployed'; - if (args['strict']) { + if (args.strict) { console.error(message); process.exit(1); } @@ -132,4 +133,53 @@ yargs(hideBin(process.argv)) ); } ) + .command( + 'compute-dapp-id', + 'Computes the dApp ID for a given dApp alias and chain ID', + { + 'dapp-alias': dappAlias, + 'chain-id': chainId, + strict, + }, + (args) => { + const chain = CHAINS.find((c) => c.id === args['chain-id']); + if (!chain) { + const message = `⚠️ Chain with ID ${args['chain-id']} is not known`; + if (args.strict) { + console.error(message); + process.exit(1); + } + console.warn(message); + } + + const dappInfo = DAPPS.find((dapp) => Object.keys(dapp.aliases).includes(args['dapp-alias'])); + if (!dappInfo) { + const message = `⚠️ Could not find any record for alias "${args['dapp-alias']}"`; + if (args.strict) { + console.error(message); + process.exit(1); + } + console.warn(message); + } else if (chain) { + const aliasInfo = dappInfo.aliases[args['dapp-alias']]; + if (!aliasInfo!.chains.includes(chain.alias)) { + const message = `⚠️ dApp alias "${args['dapp-alias']}" is not available on chain "${chain.name}"`; + if (args.strict) { + console.error(message); + process.exit(1); + } + console.warn(message); + } + } + + console.log(`\ndApp alias: ${args['dapp-alias']}\nchain: ${chain?.name ?? args['chain-id']}`); + if (dappInfo) { + const [, aliasInfo] = Object.entries(dappInfo.aliases).find(([alias]) => alias === args['dapp-alias'])!; + if (aliasInfo.description) console.log(`\nℹ️ ${aliasInfo.description}`); + } + + const dappId = unsafeComputeDappId(args['dapp-alias'], args['chain-id']); + console.log(`\n• dApp ID: ${dappId.toString()}`); + } + ) .help().argv; diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 48802ccc..d7a78174 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -78,19 +78,6 @@ export const CHAINS: Chain[] = [ symbol: 'ETH', testnet: false, }, - { - alias: 'atleta-testnet', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://blockscout.testnet-v2.atleta.network/api' }, - browserUrl: 'https://blockscout.testnet-v2.atleta.network/', - }, - id: '2340', - name: 'Atleta testnet', - providers: [{ alias: 'default', rpcUrl: 'https://testnet-rpc.atleta.network' }], - symbol: 'ATLA', - testnet: true, - }, { alias: 'avalanche-testnet', decimals: 18, @@ -191,7 +178,6 @@ export const CHAINS: Chain[] = [ name: 'Berachain', providers: [ { alias: 'default', rpcUrl: 'https://rpc.berachain.com/' }, - { alias: 'publicnode', rpcUrl: 'https://berachain-rpc.publicnode.com' }, { alias: 'alchemy', homepageUrl: 'https://alchemy.com' }, { alias: 'drpc', homepageUrl: 'https://drpc.org' }, { alias: 'quicknode', homepageUrl: 'https://quicknode.com' }, @@ -369,7 +355,7 @@ export const CHAINS: Chain[] = [ }, id: '17000', name: 'Ethereum Holesky testnet', - providers: [{ alias: 'default', rpcUrl: 'https://holesky.gateway.tenderly.co' }], + providers: [{ alias: 'default', rpcUrl: 'https://ethereum-holesky-rpc.publicnode.com' }], symbol: 'ETH', testnet: true, }, @@ -475,32 +461,6 @@ export const CHAINS: Chain[] = [ symbol: 'xDAI', testnet: false, }, - { - alias: 'inevm-testnet', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://testnet.explorer.inevm.com/api' }, - browserUrl: 'https://testnet.explorer.inevm.com/', - }, - id: '2424', - name: 'inEVM testnet', - providers: [{ alias: 'default', rpcUrl: 'https://testnet.rpc.inevm.com/http' }], - symbol: 'INJ', - testnet: true, - }, - { - alias: 'inevm', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://explorer.inevm.com/api' }, - browserUrl: 'https://explorer.inevm.com/', - }, - id: '2525', - name: 'inEVM', - providers: [{ alias: 'default', rpcUrl: 'https://mainnet.rpc.inevm.com/http' }], - symbol: 'INJ', - testnet: false, - }, { alias: 'ink-sepolia-testnet', decimals: 18, @@ -533,6 +493,22 @@ export const CHAINS: Chain[] = [ symbol: 'ETH', testnet: false, }, + { + alias: 'katana', + decimals: 18, + explorer: { + api: { key: { required: false }, url: 'https://explorer.katanarpc.com/api' }, + browserUrl: 'https://explorer.katanarpc.com/', + }, + id: '747474', + name: 'Katana', + providers: [ + { alias: 'default', rpcUrl: 'https://rpc.katana.network' }, + { alias: 'conduit', homepageUrl: 'https://conduit.xyz' }, + ], + symbol: 'ETH', + testnet: false, + }, { alias: 'kava-testnet', decimals: 18, @@ -563,65 +539,6 @@ export const CHAINS: Chain[] = [ symbol: 'KAVA', testnet: false, }, - { - alias: 'kroma-sepolia-testnet', - decimals: 18, - explorer: { - api: { key: { required: true }, url: 'https://api.routescan.io/v2/network/testnet/evm/2358/etherscan' }, - browserUrl: 'https://testnet.kroscan.io/', - }, - id: '2358', - name: 'Kroma testnet', - providers: [{ alias: 'default', rpcUrl: 'https://api.sepolia.kroma.network/' }], - symbol: 'ETH', - testnet: true, - }, - { - alias: 'kroma', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://api.routescan.io/v2/network/mainnet/evm/255/etherscan' }, - browserUrl: 'https://kroscan.io/', - }, - id: '255', - name: 'Kroma', - providers: [ - { alias: 'default', rpcUrl: 'https://api.kroma.network/' }, - { alias: 'drpc', homepageUrl: 'https://drpc.org' }, - { alias: 'rockx', homepageUrl: 'https://rockx.com/' }, - ], - symbol: 'ETH', - testnet: false, - }, - { - alias: 'lightlink-sepolia-testnet', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://pegasus.lightlink.io/api' }, - browserUrl: 'https://pegasus.lightlink.io/', - }, - id: '1891', - name: 'LightLink testnet', - providers: [{ alias: 'default', rpcUrl: 'https://replicator.pegasus.lightlink.io/rpc/v1' }], - symbol: 'ETH', - testnet: true, - }, - { - alias: 'lightlink', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://phoenix.lightlink.io/api' }, - browserUrl: 'https://phoenix.lightlink.io/', - }, - id: '1890', - name: 'LightLink', - providers: [ - { alias: 'default', rpcUrl: 'https://replicator.phoenix.lightlink.io/rpc/v1' }, - { alias: 'omniatech', rpcUrl: 'https://endpoints.omniatech.io/v1/lightlink/phoenix/public' }, - ], - symbol: 'ETH', - testnet: false, - }, { alias: 'linea-sepolia-testnet', decimals: 18, @@ -712,7 +629,7 @@ export const CHAINS: Chain[] = [ name: 'Manta', providers: [ { alias: 'default', rpcUrl: 'https://pacific-rpc.manta.network/http' }, - { alias: 'public', rpcUrl: 'https://r1.pacific.manta.systems/http' }, + { alias: 'public', rpcUrl: 'https://manta-pacific-gascap.calderachain.xyz/http' }, { alias: 'nirvanalabs', rpcUrl: 'https://manta.nirvanalabs.xyz/mantapublic' }, { alias: 'drpc', homepageUrl: 'https://drpc.org' }, ], @@ -791,6 +708,19 @@ export const CHAINS: Chain[] = [ symbol: 'BTC', testnet: false, }, + { + alias: 'metal-sepolia-testnet', + decimals: 18, + explorer: { + api: { key: { required: false }, url: 'https://testnet.explorer.metall2.com/api' }, + browserUrl: 'https://testnet.explorer.metall2.com/', + }, + id: '1740', + name: 'Metal L2 testnet', + providers: [{ alias: 'default', rpcUrl: 'https://testnet.rpc.metall2.com/' }], + symbol: 'ETH', + testnet: true, + }, { alias: 'metal', decimals: 18, @@ -932,7 +862,6 @@ export const CHAINS: Chain[] = [ providers: [ { alias: 'default', rpcUrl: 'https://rpc.api.moonriver.moonbeam.network' }, { alias: 'publicnode', rpcUrl: 'https://moonriver-rpc.publicnode.com' }, - { alias: 'blastapi', homepageUrl: 'https://blastapi.io' }, { alias: 'drpc', homepageUrl: 'https://drpc.org/' }, ], symbol: 'MOVR', @@ -1051,7 +980,7 @@ export const CHAINS: Chain[] = [ name: 'Polygon testnet', providers: [ { alias: 'default', rpcUrl: 'https://rpc-amoy.polygon.technology' }, - { alias: 'publicnode', rpcUrl: 'https://polygon-amoy-bor-rpc.publicnode.com' }, + { alias: 'tenderly-public', rpcUrl: 'https://polygon-amoy.gateway.tenderly.co' }, ], symbol: 'POL', testnet: true, @@ -1107,32 +1036,6 @@ export const CHAINS: Chain[] = [ symbol: 'POL', testnet: false, }, - { - alias: 'rari-arbitrum-sepolia-testnet', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://testnet.explorer.rarichain.org/api' }, - browserUrl: 'https://testnet.explorer.rarichain.org/', - }, - id: '1918988905', - name: 'RARI Chain testnet', - providers: [{ alias: 'default', rpcUrl: 'https://rari-testnet.calderachain.xyz/http' }], - symbol: 'ETH', - testnet: true, - }, - { - alias: 'rari', - decimals: 18, - explorer: { - api: { key: { required: false }, url: 'https://mainnet.explorer.rarichain.org/api' }, - browserUrl: 'https://mainnet.explorer.rarichain.org/', - }, - id: '1380012617', - name: 'RARI Chain', - providers: [{ alias: 'default', rpcUrl: 'https://mainnet.rpc.rarichain.org/http/' }], - symbol: 'ETH', - testnet: false, - }, { alias: 'ronin-testnet', decimals: 18, @@ -1426,16 +1329,10 @@ export const CHAINS: Chain[] = [ { alias: 'zircuit-sepolia-testnet', decimals: 18, - explorer: { - api: { key: { required: true }, url: 'https://explorer.testnet.zircuit.com/api/contractVerifyHardhat' }, - browserUrl: 'https://explorer.testnet.zircuit.com/', - }, - id: '48899', + explorer: { browserUrl: 'https://explorer.garfield-testnet.zircuit.com/' }, + id: '48898', name: 'Zircuit testnet', - providers: [ - { alias: 'default', rpcUrl: 'https://testnet.zircuit.com' }, - { alias: 'liquify', rpcUrl: 'https://zircuit1-testnet.liquify.com' }, - ], + providers: [{ alias: 'default', rpcUrl: 'https://garfield-testnet.zircuit.com' }], symbol: 'ETH', testnet: true, }, diff --git a/src/generated/dapps.ts b/src/generated/dapps.ts index 81273a31..89fd42b8 100644 --- a/src/generated/dapps.ts +++ b/src/generated/dapps.ts @@ -9,7 +9,6 @@ import { type Dapp } from '../types'; export const DAPPS: Dapp[] = [ { aliases: { apebank: { chains: ['apechain'], title: 'ApeBank' } }, homepageUrl: 'https://ape-bank.netlify.app/' }, - { aliases: { 'aurum-finance': { chains: ['sonic'], title: 'Aurum' } }, homepageUrl: 'https://aurumfi.io/' }, { aliases: { 'compound-finance-usde': { @@ -21,14 +20,9 @@ export const DAPPS: Dapp[] = [ homepageUrl: 'https://compound.finance/', }, { aliases: { dtrinity: { chains: ['fraxtal', 'sonic'], title: 'dTRINITY' } }, homepageUrl: 'https://dtrinity.org/' }, - { aliases: { elara: { chains: ['zircuit'], title: 'Elara' } }, homepageUrl: 'https://app.elara.finance/' }, { aliases: { enclabs: { chains: ['sonic'], title: 'Enclabs' } }, homepageUrl: 'https://www.enclabs.finance/' }, { aliases: { hana: { chains: ['taiko'], title: 'Hana Finance' } }, homepageUrl: 'https://www.hana.finance/' }, { aliases: { init: { chains: ['blast', 'mantle'], title: 'INIT Capital' } }, homepageUrl: 'https://init.capital/' }, - { - aliases: { ionic: { chains: ['mode', 'metal'], title: 'Ionic Protocol' } }, - homepageUrl: 'https://www.ionic.money/', - }, { aliases: { lendle: { chains: ['mantle'], title: 'Lendle' } }, homepageUrl: 'https://www.lendle.xyz/' }, { aliases: { 'mach-finance': { chains: ['sonic'], title: 'MachFi' } }, homepageUrl: 'https://www.machfi.xyz/' }, { aliases: { malda: { chains: ['linea'], title: 'Malda' } }, homepageUrl: 'https://malda.xyz/' }, @@ -41,15 +35,54 @@ export const DAPPS: Dapp[] = [ description: 'Only to be used for the MVL/USDC 77% LLTV market.', }, 'morpho-wsteth-usdc-860-lltv': { - chains: ['ethereum'], + chains: ['ethereum', 'gnosis'], title: 'Morpho wstETH/USDC 86% LLTV', description: 'Only to be used for the wstETH/USDC 86% LLTV market.', }, + 'morpho-wbtc-usdc-860-lltv': { + chains: ['ethereum'], + title: 'Morpho WBTC/USDC 86% LLTV', + description: 'Only to be used for the WBTC/USDC 86% LLTV market.', + }, + 'morpho-cbbtc-usdc-860-lltv': { + chains: ['ethereum'], + title: 'Morpho cbBTC/USDC 86% LLTV', + description: 'Only to be used for the cbBTC/USDC 86% LLTV market.', + }, + 'morpho-vbeth-vbusdc-860-lltv': { + chains: ['katana'], + title: 'Morpho vbETH/vbUSDC 86% LLTV', + description: 'Only to be used for the vbETH/vbUSDC 86% LLTV market.', + }, + 'morpho-vbeth-vbusdt-860-lltv': { + chains: ['katana'], + title: 'Morpho vbETH/vbUSDT 86% LLTV', + description: 'Only to be used for the vbETH/vbUSDT 86% LLTV market.', + }, + 'morpho-vbwbtc-vbusdc-860-lltv': { + chains: ['katana'], + title: 'Morpho vbWBTC/vbUSDC 86% LLTV', + description: 'Only to be used for the vbWBTC/vbUSDC 86% LLTV market.', + }, + 'morpho-vbwbtc-vbusdt-860-lltv': { + chains: ['katana'], + title: 'Morpho vbWBTC/vbUSDT 86% LLTV', + description: 'Only to be used for the vbWBTC/vbUSDT 86% LLTV market.', + }, + 'morpho-gno-usdc-860-lltv': { + chains: ['gnosis'], + title: 'Morpho GNO/USDC 86% LLTV', + description: 'Only to be used for the GNO/USDC 86% LLTV market.', + }, + 'morpho-sdai-usdc-860-lltv': { + chains: ['gnosis'], + title: 'Morpho sDAI/USDC 86% LLTV', + description: 'Only to be used for the sDAI/USDC 86% LLTV market.', + }, }, homepageUrl: 'https://morpho.org/vaults/', }, { aliases: { nerite: { chains: ['arbitrum'], title: 'Nerite' } }, homepageUrl: 'https://www.nerite.org/' }, - { aliases: { omega: { chains: ['mantle'], title: 'Omega' } }, homepageUrl: 'https://www.omega.xyz/' }, { aliases: { orbit: { chains: ['blast'], title: 'Orbit Protocol' } }, homepageUrl: 'https://orbitlending.io/' }, { aliases: { 'segment-finance': { chains: ['bob', 'core'], title: 'Segment Finance' } }, @@ -80,10 +113,6 @@ export const DAPPS: Dapp[] = [ homepageUrl: 'https://www.takotako.xyz/', }, { aliases: { tunnl: { chains: ['polygon'], title: 'tunnl' } }, homepageUrl: 'https://www.tunnl.exchange/' }, - { - aliases: { 'vicuna-finance': { chains: ['sonic'], title: 'Vicuna Finance' } }, - homepageUrl: 'https://vicunafinance.com/', - }, { aliases: { yei: { chains: ['sei'], title: 'Yei Finance' } }, homepageUrl: 'https://www.yei.finance/' }, { aliases: { zerolend: { chains: ['zircuit'], title: 'ZeroLend' } }, homepageUrl: 'https://zerolend.xyz/' }, ];